I have a spreadsheet that calulates the Overtime & Double Overtime on a daily input basis. However, the formulas are incorrect and I cannot seem to get them to work correctly. Please help!!!
Standard Time = 0-8 hours
Overtime = 8-12 hours
Double Overtime = 12-24hrs
Right now, the spreadsheet calculates the time as follows:
Standard Time = 0-8 hours
Overtime = 8-16 hours
Double Overtime = 16-24hrs
Last edited by KimBVS; 08-24-2011 at 01:31 PM.
I'm not sure if I'm reading this right or not, but I tried a SUMIF based on the value of column A looking for OT, DOT and DT.
Try putting...In cell I22=SUMIF($A$6:$A$20,"=OT",$I$6:$I$20)
In cell I23=SUMIF($A$6:$A$20,"=DOT",$I$6:$I$20)
...finally, in I24=SUMIF($A$6:$A$20,"=DT",$I$6:$I$20)
This returns:
H I 21 TOTAL 16.00 22 ST 4.00 23 OT 4.00 24 DT -
Thanks for the help but it doesn't calculate. Perhaps I did not explain well enough. I want the total hours split (regarless of code) to reflect the following:
Example 1:
19 hours- total
8 hours - regular (time less than or = to 8 hours)
4 hours - overtime (time greater than 8 hours but less than 12 hours)
7 hours -double overtime (time over 12 hours in a 24 hour period)
Example 2:
12 hours- total
8 hours - regular (time less than or = to 8 hours)
4 hours - overtime (time greater than 8 hours but less than 12 hours)
0 hours -double overtime (time over 12 hours in a 24 hour period)
Example 3:
23 hours- total
8 hours - regular (time less than or = to 8 hours)
4 hours - overtime (time greater than 8 hours but less than 12 hours)
11 hours -double overtime (time over 12 hours in a 24 hour period)
Hope this helps![]()
OK, I think I may have it. The Overtime was the tricky one, because if the Time isn't between 8 and 12, you still want to return a number of overtime hours if Time is greater than 12.
For the following I have used D4 as the cell with Time in it, and these 3 formula are in cells D6, D7 and D8:
=IF(D4>=8,8,D4) =IF(AND(D4>8,D4<=12),D4-8,D4-D6-D8) =IF(D4>12,D4-12,0)
That works perfect. Thanks so much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks