Total Time calculation for multiple start/end times in one day

jladkins69

New Member
Joined
Jun 12, 2018
Messages
1
I'm trying to modify an existing timesheet that I created to track employee hours worked. I need to add some additional columns in order to calculate time with a large break in between work.

For example: I have an employee that works 7:00 AM to 2:00 PM then will pick up again at 7:00 PM to 2:30 AM....

I can think of 2 options to perform this:
Option 1: Set the initial start and final end time - add a column for total break hours - then subtract the break hours from the total calculated work hours

Option 2: I can add additional columns for 1st shift total and 2nd shift total and add together.

Which option would be better? How do I do the formula so it will work?
Below is the original spreadsheet that I created..
=IF(AND(ISNUMBER(E5),ISNUMBER(D5)),MOD(E5-D5,1),0)*24
[TABLE="width: 500"]
<tbody>[TR]
[TD]
[TABLE="width: 538"]
<tbody>[TR]
[TD="class: xl88, width: 44, bgcolor: transparent"]1
[/TD]
[TD="class: xl88, width: 64, bgcolor: transparent"]A
[/TD]
[TD="class: xl88, width: 89, bgcolor: transparent"]B
[/TD]
[TD="class: xl85, width: 73, bgcolor: transparent"]C
[/TD]
[TD="class: xl85, width: 70, bgcolor: transparent"]D
[/TD]
[TD="class: xl88, width: 77, bgcolor: transparent"]E
[/TD]
[TD="class: xl88, width: 77, bgcolor: transparent"]F
[/TD]
[TD="class: xl85, width: 73, bgcolor: transparent"]G
[/TD]
[TD="class: xl85, width: 70, bgcolor: transparent"]H
[/TD]
[TD="class: xl88, width: 77, bgcolor: transparent"]I
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]2
[/TD]
[TD="class: xl87, width: 64, bgcolor: transparent"]Employee Name:
[/TD]
[TD="class: xl65, width: 89, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: #C5D9F1"]Emp #1
[/TD]
[TD="class: xl67, bgcolor: #C5D9F1"][/TD]
[TD="class: xl68, bgcolor: #C5D9F1"][/TD]
[TD="class: xl69, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: #C5D9F1"]Emp #2
[/TD]
[TD="class: xl67, bgcolor: #C5D9F1"][/TD]
[TD="class: xl68, bgcolor: #C5D9F1"][/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]3
[/TD]
[TD="bgcolor: transparent"]Day:
[/TD]
[TD="class: xl71, bgcolor: transparent"]Date:
[/TD]
[TD="class: xl72, bgcolor: #8DB4E2"]Start
[/TD]
[TD="class: xl73, bgcolor: #8DB4E2"]End
[/TD]
[TD="class: xl74, bgcolor: #8DB4E2"]Total Hours
[/TD]
[TD="class: xl71, bgcolor: transparent"][/TD]
[TD="class: xl72, bgcolor: #8DB4E2"]Start
[/TD]
[TD="class: xl73, bgcolor: #8DB4E2"]End
[/TD]
[TD="class: xl74, bgcolor: #8DB4E2"]Total Hours
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]4
[/TD]
[TD="class: xl75, bgcolor: transparent"]Sunday
[/TD]
[TD="class: xl76, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]5
[/TD]
[TD="class: xl75, bgcolor: transparent"]Monday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/1/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]Off
[/TD]
[TD="class: xl78, bgcolor: transparent"]Off
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]Off
[/TD]
[TD="class: xl78, bgcolor: transparent"]Off
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]6
[/TD]
[TD="class: xl75, bgcolor: transparent"]Tuesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/2/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]8:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]9:00 AM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]1
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]11.5
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]7
[/TD]
[TD="class: xl75, bgcolor: transparent"]Wednesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/3/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]Off
[/TD]
[TD="class: xl78, bgcolor: transparent"]Off
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]6:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]10:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]16
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]8
[/TD]
[TD="class: xl75, bgcolor: transparent"]Thursday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/4/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]8:15 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]2:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]6.25
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]6:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]7:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]13
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]9
[/TD]
[TD="class: xl75, bgcolor: transparent"]Friday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/5/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]6:15 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]2:45 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]8.5
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]9:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]14.5
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]10
[/TD]
[TD="class: xl75, bgcolor: transparent"]Saturday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/6/18
[/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]11
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Wk1
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Weekly Total
[/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]15.75
[/TD]
[TD="class: xl84, bgcolor: #538DD5"][/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]55
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]12
[/TD]
[TD="class: xl75, bgcolor: transparent"]Sunday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/7/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]9:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]9.5
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]13
[/TD]
[TD="class: xl75, bgcolor: transparent"]Monday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/8/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]6:30 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:15 AM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]23.75
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]9:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]14.5
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]14
[/TD]
[TD="class: xl75, bgcolor: transparent"]Tuesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/9/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]6:30 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]7:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]12.5
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]6:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]8:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]14.5
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]15
[/TD]
[TD="class: xl75, bgcolor: transparent"]Wednesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/10/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]6:30 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]12
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]11:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]16
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]16
[/TD]
[TD="class: xl75, bgcolor: transparent"]Thursday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/11/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]11.5
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]5:00 PM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]12:00 AM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]7
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]17
[/TD]
[TD="class: xl75, bgcolor: transparent"]Friday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/12/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]7:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]12
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]8:30 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]11:30 AM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]3
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]18
[/TD]
[TD="class: xl75, bgcolor: transparent"]Saturday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/13/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]8:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]13
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]19
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Wk2
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Weekly Total
[/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]94.25
[/TD]
[TD="class: xl84, bgcolor: #538DD5"][/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]55
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]20
[/TD]
[TD="class: xl75, bgcolor: transparent"]Sunday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/14/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]8:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]13
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]21
[/TD]
[TD="class: xl75, bgcolor: transparent"]Monday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/15/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]11
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]7:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]12
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]22
[/TD]
[TD="class: xl75, bgcolor: transparent"]Tuesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/16/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]8:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]13
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]8:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:30 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]10.5
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]23
[/TD]
[TD="class: xl75, bgcolor: transparent"]Wednesday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/17/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]8:30 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]1:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]4.5
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]4:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]5:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]13
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]24
[/TD]
[TD="class: xl75, bgcolor: transparent"]Thursday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/18/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]8:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]6:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]10
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"]7:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]3:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]8
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]25
[/TD]
[TD="class: xl75, bgcolor: transparent"]Friday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/19/18
[/TD]
[TD="class: xl77, bgcolor: transparent"]8:00 AM
[/TD]
[TD="class: xl78, bgcolor: transparent, align: right"]5:00 PM
[/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]9
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]26
[/TD]
[TD="class: xl75, bgcolor: transparent"]Saturday
[/TD]
[TD="class: xl76, bgcolor: transparent"]1/20/18
[/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[TD="class: xl75, bgcolor: transparent"][/TD]
[TD="class: xl77, bgcolor: transparent"][/TD]
[TD="class: xl78, bgcolor: transparent"][/TD]
[TD="class: xl79, bgcolor: #8DB4E2"]0
[/TD]
[/TR]
[TR]
[TD="class: xl88, bgcolor: transparent"]27
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Wk3
[/TD]
[TD="class: xl80, bgcolor: #538DD5"]Weekly Total
[/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]60.5
[/TD]
[TD="class: xl84, bgcolor: #538DD5"][/TD]
[TD="class: xl81, bgcolor: #538DD5"][/TD]
[TD="class: xl82, bgcolor: #538DD5"][/TD]
[TD="class: xl83, bgcolor: #538DD5"]43.5
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top