Formula for Time and Range

ebrazeau13

New Member
Joined
Aug 14, 2017
Messages
6
Looking to find a formula that will help me find the exact amount of time that falls within a given range. Here is my situation:

I have been tasked to find the amount of time that falls within an "Operational time". The range of this operational time is between 06:00:00 and 22:00:00. Here is an example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Start Time[/TD]
[TD]End Time[/TD]
[TD]Total Time[/TD]
[TD]Operational Time[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]00:50:00[/TD]
[TD]08:00:00[/TD]
[TD]430[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06:05:00[/TD]
[TD]08:15:00[/TD]
[TD]130[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07:40:00[/TD]
[TD]15:20:00[/TD]
[TD]460[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08:00:00[/TD]
[TD]15:35:00[/TD]
[TD]455[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08:25:00[/TD]
[TD]23:30:00[/TD]
[TD]905[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08:25:00[/TD]
[TD]22:25:00[/TD]
[TD]840[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08:40:00[/TD]
[TD]23:55:00[/TD]
[TD]915[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Is there a formula that I am able to use that will figure out the amount of time that falls between 06:00:00 and 22:00:00?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Total Time in minutes =(B2-A2)*24*60
Operational Time in minutes =(MIN(B2,0.92)-(MAX(A2,0.25)))*24*60

Put those formulas in cells C2 and D2 respectively and copy down... that should work unless the person works overnight... if that is the case, you will need to note that somehow to determine time.

Good luck, CN.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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