Hello,
I am looking to create timesheet and need some assistance with the formulas. The shifts are 12 hour shifts, and separated as day or night as payroll will pay a different rate for the night shift. Each day is recorded separately even if the shift goes from 7pm - 7am. Military time is used and the total displayed in [H]MM. Employees can waive one of their 2 meal breaks if desired. Regular Time (RT) then is a 12 hour shift, Double Time (DT) is time over 12 hours even if across two days (ie: 7pm - 8:30 am), and Over Time (OT) is over 40 hours in a week.
I've been happy with what I have so far (sorry, wasn't able to attach the spreadsheet).
Headers are:
Date Start Time 1 lunch out 1 lunch in 2nd lunch out 2nd lunch in End Time RT OT DT Day/Night
RT daily formula =IF(C5-B5+(E5-D5)+(G5-F5)>12/24,12/24,C5-B5+(E5-D5)+(G5-F5))
OT formula auto calculate from week RT Total =MAX(0,SUM(I5:I11)-40/24)
DT daily formula =IF(C5-B5+(E5-D5)+(G5-F5)>12/24,(C5-B5+(E5-D5)+(G5-F5)-12/24),0)
Date In Out In Out In Out RT OT DT Code
12/19/16 7:00 12:00 12:30 16:30 9:00 0:00 Day
12/20/16 8:00 13:15 13:45 19:30 11:00 0:00 Day
12/20/16 19:30 21:30 2:00 0:00 Night
12/21/16 6:00 12:00 12:30 19:30 12:00 1:00 Day
12/22/16 19:00 24:00 5:00 0:00 Night
12/23/16 0:00 0:30 1:00 8:45 8:15 0:00 Night
47:15 40:00 7:15 1:00
The 47:15 is a hidden calculation so that the 40 RT shows as the total.
With the above, I'm pretty happy with, but need assistance with the OT & DT when crosses over into the next day. Example above: 12/20/16, the second entry should be 1 hour RT and 1 hour DT. Also, 12/23/16 is a carry over from 12/22/16 so the OT total should be 5 and the DT total should be 2:15 in HH:MM. Any Ideas?
Thank you much,
Gina
Bookmarks