Calculating the hours/minutes time ranges do not overlap

excelforeverything

New Member
Joined
Dec 10, 2018
Messages
2
Hello all,

Hopefully I can explain this clearly... I am currently trying to calculate the hours/minutes from Time Range A (which is a recurring schedule of APPROVED time ranges) that do NOT overlap with Time Range B (which is a larger data set of different login periods). Basically, users will have allotted time ranges through out the day that they are allowed to login at, if the time range that they are logged in for is longer or anywhere out side of their allotted time range then I need to be able calculate those hour/minutes. My process right now has many helper columns and some of my equations won't catch accurately calculate what I'm trying to do in all situations.

For example, Time Range A, AKA an approved recurring schedule for the month of November:

User Name Start Time End Time
User 1 0:00 6:45
User 1 9:32 11:45
User 1 19:38 21:35
User 1 20:54 23:59
User 2 6:25 10:00

Time Range B, AKA all the time ranges that users had logged in:
User NameStart TimeStart DateEnd TimeEnd Date
User 119:55:1411/02/1820:57:0211/02/18
User 18:41:4011/03/1811:56:1011/03/18
User 111:44:1611/04/1811:52:2411/04/18
User 111:57:1811/04/1812:50:4011/04/18
User 111:07:0011/05/1812:06:0211/05/18
User 18:58:1111/06/1813:09:5611/06/18
User 111:41:4811/06/1813:05:1111/06/18
User 120:12:3011/06/1821:29:5711/06/18

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
User 18:54:0811/02/1811:18:1911/02/18
User 29:22:0211/02/189:31:4611/02/18
User 29:31:5511/02/1810:00:1211/02/18
User 215:46:1611/06/1816:09:1611/06/18
User 216:14:4411/06/1816:35:5411/06/18
User 216:36:1311/06/1817:00:4911/06/18

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>


<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,214,657
Messages
6,120,764
Members
448,991
Latest member
Hanakoro

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