Working Hours calculation & Overlapping Data range between 2 tables

jerberna

New Member
Joined
Sep 11, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello everyone

I'm quite stucked since several days on the following issue and i can't figure out how to manage this.

First table is just a bunch of ID with start date & end date. For one ID, i may have several data range which are representing the time when the incident was in a specific group.
The second Table is the same bunch of ID with some range as well, which are representing the time when the incident was in a specific state. ("in progress")

My main goal is to be able retrieve the total volume of "in progress" in the resolver group used for the first table during working hours days.

For the story of working hours, i've been able to sort it out..
But i'm unable to successfully cross the information between both tables to build the intersection between all data range for a same incident. As i could have several lines & uses cases for the overlapping period between data ranges, i'm able to retrieve some information (such as the start date & end date of the presence in the resolver group if there is an overlapping period with the "in progress" table using Index(Match(1; Condition * condition...)) but as soon as i have several lines in my progress table that are fitting in the same data range of my first table (see ID 14216 for instance), i'm totally stucked.

If someone of you has a crazy idea, i take it :) Thanks !


incident_metric (4).xlsx
ABC
1IDStart DateEnd Date
20046529/07/2021 14:1710/08/2021 13:02
30046521/07/2021 14:2522/07/2021 16:13
40050821/07/2021 12:5209/08/2021 02:03
50286223/07/2021 15:2327/07/2021 18:36
60286222/07/2021 08:4723/07/2021 10:05
70286229/07/2021 13:4110/08/2021 13:04
80343327/07/2021 09:5310/08/2021 12:02
90343322/07/2021 10:3323/07/2021 10:04
100432823/07/2021 14:0105/08/2021 17:00
110578104/08/2021 14:3211/08/2021 17:06
120686528/07/2021 12:4410/08/2021 15:05
130686523/07/2021 16:3426/07/2021 15:22
140731523/07/2021 09:5003/08/2021 19:00
150766223/07/2021 10:4414/08/2021 02:00
160811927/07/2021 11:3104/08/2021 12:04
171080329/07/2021 15:3930/07/2021 09:37
181080302/08/2021 07:2211/08/2021 11:10
191080326/07/2021 08:1729/07/2021 10:37
201167829/07/2021 11:5223/08/2021 12:09
211167826/07/2021 10:0528/07/2021 15:38
221232906/08/2021 14:3913/08/2021 17:02
231303728/07/2021 09:2720/08/2021 13:03
241303726/07/2021 14:5627/07/2021 19:02
251421627/07/2021 09:5730/07/2021 14:40
261421613/08/2021 07:3413/08/2021 13:47
271421617/08/2021 10:4624/08/2021 16:06
281421605/08/2021 11:0409/08/2021 15:45
Duration in RG


incident_metric (4).xlsx
ABC
1IDStart DateEnd Date
20046530/07/2021 16:3030/07/2021 17:29
30046528/07/2021 13:5430/07/2021 09:53
40046528/07/2021 13:3528/07/2021 13:48
50046521/07/2021 14:2321/07/2021 16:27
60046522/07/2021 14:1023/07/2021 13:18
70046521/07/2021 17:3522/07/2021 09:17
80050821/07/2021 12:4921/07/2021 15:11
90286223/07/2021 15:2330/07/2021 12:51
100286230/07/2021 16:3030/07/2021 17:29
110286222/07/2021 08:4423/07/2021 14:30
120343322/07/2021 10:1223/07/2021 16:18
130343327/07/2021 09:4330/07/2021 13:52
140343330/07/2021 16:3030/07/2021 17:28
150432829/07/2021 15:5529/07/2021 16:10
160432822/07/2021 12:2129/07/2021 14:24
170578122/07/2021 16:1323/07/2021 14:24
180578104/08/2021 14:3204/08/2021 16:51
190686523/07/2021 11:4728/07/2021 10:12
200686528/07/2021 10:4330/07/2021 12:51
210686530/07/2021 16:3030/07/2021 17:29
220686523/07/2021 08:3323/07/2021 08:34
230731523/07/2021 09:4727/07/2021 18:15
240766223/07/2021 10:2623/07/2021 12:32
250766226/07/2021 10:1626/07/2021 10:38
260766223/07/2021 14:3926/07/2021 09:22
270811927/07/2021 08:5027/07/2021 10:55
280811927/07/2021 11:3128/07/2021 11:00
290811923/07/2021 11:2426/07/2021 21:39
301080302/08/2021 07:2202/08/2021 12:54
311080329/07/2021 15:1130/07/2021 14:46
321080326/07/2021 08:0529/07/2021 13:59
331167829/07/2021 11:5206/08/2021 16:29
341167826/07/2021 09:5528/07/2021 16:37
351232926/07/2021 11:3726/07/2021 19:08
361232903/08/2021 14:0205/08/2021 09:49
371232927/07/2021 10:0827/07/2021 11:53
381232906/08/2021 13:4706/08/2021 16:08
391303726/07/2021 14:5028/07/2021 07:26
401303728/07/2021 09:2703/08/2021 14:03
411421626/07/2021 16:4626/07/2021 16:47
421421627/07/2021 08:5230/07/2021 17:25
431421603/08/2021 07:5803/08/2021 15:08
441421605/08/2021 09:4605/08/2021 13:01
451421606/08/2021 11:5506/08/2021 15:17
461421609/08/2021 11:2716/08/2021 11:34
471421617/08/2021 09:0517/08/2021 15:46
In Progress
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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