# Excel Formula to track different pay rates Microsoft Office excel 2007 home & stude...
July 21, 2010 at 09:47:16
Specs: Windows 7, Pentium 4 1.8 GHZ /
 I work in a bar/grill, and I am trying to set up a spreadsheet to help me keep track of all my hours and tips. I hit a setback while trying to set my totals column due to the fact that we have two separate pay rates, one for bar and one for kitchen.The way I have my spreadsheet set up now, I have 5 columns: Date, Shift, Pay Rate, Hours, Tips. I want to set up a small chart showing all of my total bar hours, total kitchen hours, total combined hours, and total tips earned.My problem is setting the formulas for my totals chart to distinguish between bar hours and kitchen hours. My first thought was to use the SUMIF formula, but I cannot get it to work out right. Any ideas/suggestions? See More: Excel Formula to track different pay rates

#1 July 21, 2010 at 10:14:05
 Hi,What data in your worksheet distinguishes between Bar and Kitchen shifts.If you have a column with "B" or "K" in it, say column Gand Pay is in column Cusing the 16 shifts in rows 2 to 17Enter "B" in cell H18and this in cell I19=SUMIF(\$G\$2:\$G\$17,H18,\$C\$2:\$C\$17)and you get the total Bar pay for the selected periodEnter "K" in H19Drag the formula down a row and you get the Kitchen pay in the selected period.Without more concrete information, that's about as far as I can go.Regards

Report •

#2
July 21, 2010 at 10:59:01
 Sorry for the lack of detail.I have it set up like this:A3:A9 is each day of the weekB3:B9 is each shift I have for that dayC3:C9 is the pay rate. I entered "\$7.25" for kitchen hours and "\$2.13" for bar hours.D3:D9 is the hours I worked for that individual shift.E3:E9 is the tips I collected for that individual shift.I have a small chart underneath for totals.B12 is bar hours for that week.B13 is kitchen hours for that week.B14 is total combined hours for that week.B15 is total tips for that week.We are on a 2 week pay period, so I have the exact same charts copied starting at column G. I also have a small chart starting at column M with totals for the 2 week pay period.Here is an example of exactly what I want to do:For Tuesday, 7/20 (A3) I had a Close Bar shift (B3). The pay rate was \$2.13 (C3) and the hours worked were 5:53 (D3).I can't figure out how to set up the Weekly Totals formula to add up my total hours for the week so if the Pay Rate is \$2.13 those hours will be added under Bar Hours, and if the Pay Rate is \$7.25 those hours will be added under Kitchen Hours.I think this is a little more clear than my original post, I'm not sure of the best way to describe exactly what I am looking to do. Please let me know if there is any more information I can give to help.

Report •

#3 July 23, 2010 at 04:46:24
 Hi,To add up bar or kitchen hours you can use the SUMIF() function. It will add numbers in one column, if cells in the corresponding row in a different column match a criteria.I could have used this:=SUMIF(C3:C9,"=7.25",D3:D9)This would have given the total kitchen hours in the first week's hours column (cells D3 to D9)The problem with this is that the formula will fail if the pay rate changes.What I have done is use columns F and K to flag whether the hours were Kitchen or Bar.I used this formula in cell F3:=IF(D3=0,"",IF(C3=MAX(\$C\$3:\$C\$9),"K","B"))This works on the basis that there are two pay rates and if the rate in cell C3 is as large as the largest in column C, it must be the Kitchen rate, and displays "K".If it's not the highest rate, it displays "B".If the hours in column D are zero/empty cell it displays a blank cell.If you use 0 for no hours or leave the hours cell empty, the OR function should return TRUE for 0 or "".This isn't perfect - it would fail if all shifts were Bar shifts that weekAlso if the pay rate changed mid-week it would fail.I am sure that there could be variations on this formula to make it more robust, but I offer it as a starterDrag the formula in cell F3, down to F9Copy D3 to F9 and paste into K3 to K9Now the hours:In cell B12 enter this:=SUMIF(F3:F9,"B",D3:D9)Format the cell as [h]:mmThe formula will sum all the hours where there is a "B" in column FThe format allows hours over 24 to display as hours as opposed to being converted into days.In cell B13 do the same, but the formula looks for "K" in column F=SUMIF(F3:F9,"K",D3:D9)In cell B14 I entered this formula:=IF((B12+B13)<>SUM(D3:D9),"Error",B12+B13)Again format as [h]:mmI used this longer formula as a way of testing that the two COUNTIF formulas had captured all the hours. If not you get "Error" displayed.In cell B15 enter=SUM(E3:E9)and format as a number with two decimal places.Copy B12 to B15 and paste into G12 to G15Hope this helps.Regards

Report •
Related Solutions 