Calculate Time between 2 times but excluding a specific time range

corramk

New Member
Joined
Aug 22, 2012
Messages
3
Hi, After looking through loads of previous posts and seen your answers for some othe questions, I'm sure some one can help me with this problem I have.

I want to be able to calculate the amount of time taken to complete a task. Now the task length could span into several days, however I only want to calculate the time taken to complete the task between 0900-1700.

Example: Task started at 11:30 on the 01/01/2012 and completed at 16:30 on 02/01/2012 (dd/mm/yyyy), what is the length of time to complete job excluding the hours between 1700 on day one and 0900 on day two?

Not sure how to best formulate this! Anyone with any ideas?

Thanks
 
See my answer here

That calculates 08:00 to 17:00 and allows the start/end times/dates to be any time, just change all references to "8:00" in the formula to "9:00".....
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,580
Messages
6,125,653
Members
449,245
Latest member
PatrickL

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