Safety_3rd
New Member
- Joined
- Sep 17, 2014
- Messages
- 6
I have a list days and clock in and out times. I would like to calculate the total number of hours worked in a work week. The work week begins midnight Sunday and ends at 11:59:59 Saturday. The punch in and out times are in military format. Employees don't work every day of the week. My problems are that if an employee clocks in Saturday at 22:00 and out at 04:15 on Sunday morning 2 hours will go on the previous week and 4:15 hours in the start of the next week. The total hours need to be in decimal form not hh:mm:ss, and I cant just auto sum every 7 lines because an employee might only work 4 days in one week but all 7 in the next week. Any help would be great! Thank you. [TABLE="width: 500"]
<tbody>[TR]
[TD]Day of week
[/TD]
[TD]Punch in
[/TD]
[TD]Punch out
[/TD]
[TD]Hours
[/TD]
[/TR]
[TR]
[TD]Saturday
[/TD]
[TD]22:00
[/TD]
[TD]4:15
[/TD]
[TD]6:15
[/TD]
[/TR]
[TR]
[TD]Sunday
[/TD]
[TD]04:15
[/TD]
[TD]05:30
[/TD]
[TD]1:15
[/TD]
[/TR]
[TR]
[TD]Monday
[/TD]
[TD]21:00
[/TD]
[TD]05:30
[/TD]
[TD]8:30
[/TD]
[/TR]
[TR]
[TD]Tuesday
[/TD]
[TD]etc...
[/TD]
[TD]etc...
[/TD]
[TD]etc...
[/TD]
[/TR]
[TR]
[TD]Wednesday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Monday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tuesday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wed
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thur
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fir
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mon
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tue
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wed
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thur
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fri
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sat
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]Day of week
[/TD]
[TD]Punch in
[/TD]
[TD]Punch out
[/TD]
[TD]Hours
[/TD]
[/TR]
[TR]
[TD]Saturday
[/TD]
[TD]22:00
[/TD]
[TD]4:15
[/TD]
[TD]6:15
[/TD]
[/TR]
[TR]
[TD]Sunday
[/TD]
[TD]04:15
[/TD]
[TD]05:30
[/TD]
[TD]1:15
[/TD]
[/TR]
[TR]
[TD]Monday
[/TD]
[TD]21:00
[/TD]
[TD]05:30
[/TD]
[TD]8:30
[/TD]
[/TR]
[TR]
[TD]Tuesday
[/TD]
[TD]etc...
[/TD]
[TD]etc...
[/TD]
[TD]etc...
[/TD]
[/TR]
[TR]
[TD]Wednesday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Monday
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tuesday
[/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