Calculating hours/minutes between time ranges

Status
Not open for further replies.

excelforeverything

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

I'm in dire need of finding a better solution to this problem:

I am in need of caclulating the time between multiple time ranges. Time Range A is a recurring schedule for the month of November, that allocates specific time slots to users, who are then allowed to login during these specific times slots. If the user happens to login outside of these time slots, goes over their allotted time slot or logins in before their allotted times slots then I need to calculate the hours/minutes that they are logged in anywhere outside of their assigned time slot. I am given a large log of the date and duration that users have logged in, which we will call Time Range B.

***Happy to upload excel file if necessary.

Example of Time Range A/Recurring Schedule:

User NameStart time End time
User 120:54 23:59
User 10:00 6:45
User 1
9:32 11:45
User 1
19:38 21:35
User 26:25 10:00

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

Example of Time Range B/User Log of Date/Duration:
User NameStart TimeStart DateEnd TimeEnd DateDuration
User 119:55:1411/02/18 20:57:0211/02/18
01:01:48
User 1
8:41:4011/03/18 11:56:1011/03/18 03:14:30
User 1
11:44:1611/04/18 11:52:2411/04/18 00:08:08
User 1
11:57:1811/04/18 12:50:4011/04/18 00:53:22
User 1
11:07:0011/05/18 12:06:0211/05/18 00:59:02

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
<strike></strike>
User 2
17:55:3711/20/18 18:05:1711/20/18 00:09:40
User 2
11:50:5411/21/18 13:36:3211/21/18 01:45:38
User 2
14:42:2011/21/18 16:02:3611/21/18 01:20:16
User 2
5:34:2211/23/186:49:0011/23/18 01:14:38
User 2
6:17:0111/23/186:47:1411/23/18 00:30:13
User 2
5:52:4411/24/187:25:3811/24/18 01:32:54

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

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

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

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

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,729
Office Version
  1. 365
Platform
  1. Windows
Duplicate https://www.mrexcel.com/forum/excel...s-time-ranges-do-not-overlap.html#post5190485

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.
 
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,129,939
Messages
5,639,093
Members
417,072
Latest member
JaimeDee

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
Top