Total Work Hours

andersonbda

New Member
Joined
Dec 4, 2011
Messages
14
I need a way to calculate the total hours between two dates and times with the following assumptions:
If start time is before 8AM work is assumed to start at 8AM
If end time is after 4pm, work is assumed to end at 4pm
Start and end times that span multiple days assumes an 8am to 4pm work day

Holidays are excluded


5/24/135:16 PM5/29/139:15 AM
5/3/132:16 PM5/6/134:25 PM
5/15/1310:03 PM5/16/133:41 PM

<TBODY>
</TBODY>

5/27/13 is a holiday and should be excluded.
This is the result I want
Total Hours

1.25
9.73
13.63

<TBODY>
</TBODY>


Thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Oh Yeah... and the formula should exclude weekends (Sat, Sun) and holidays (listed in a separate row- lets say row F).
 
Upvote 0

Forum statistics

Threads
1,215,943
Messages
6,127,820
Members
449,409
Latest member
katiecolorado

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