Concurrent situations

Gcook90

New Member
Joined
Feb 3, 2015
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Working on a spreadsheet which shows telephone calls:

F column is Start time of the call (e.g. 21/05/2024 12:30)
J column is End time of the call (e.g. 21/05/2024 12:35)
K column is duration of the call in minutes and seconds (e.g. 5m 20s)

Is there a way to work out how many calls took place concurrently at the same time as each call based on this data?

Thanks in advance!
 
It's just to work out how many simultaneous calls are taking place on a very large dataset.
Your formula was working out how many are taking place at some point during the call, but not the same time.

Anyway, thank you for trying. If anyone else can help, it would be much appreciated.
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The only solution I could come up with was to generate a sequence of time from the start to the end of these calls, with a step value of one second (though I guess you could change that to be less accurate), then test to see how many calls would be taking place during each second. Then we find the maximum number of calls for any specific call's range of time. This seems inefficient, but I'm not clever enough to come up with a better strategy.

Your columns start with F, but for this formula the columns start with A. I think the formula below is giving you what you want, though I did see at least one difference compared to what you showed above. For the call that started at 24/04/2024 08:36:54, you got 3 calls, but my formula is showing 4. Even if my formula isn't quite right, I think it might be a step in the right direction.

Excel Formula:
=MAX(LET(start,$A2,end,$B2, all_start, $A$2:$A$37, all_end, $B$2:$B$37,time_seq,SEQUENCE((end-start)*24*60*60,1,start,1/(24*60*60)),COUNTIFS(all_start,"<="&time_seq,all_end,">="&time_seq)))
 
Last edited:
Upvote 1
Solution
It's just to work out how many simultaneous calls are taking place on a very large dataset.
Your formula was working out how many are taking place at some point during the call, but not the same time.

Anyway, thank you for trying. If anyone else can help, it would be much appreciated.
I wanted to check in and see if my formula above was giving you what you want. I wanted to see whether that formula would work on a large dataset.
 
Upvote 0
The only solution I could come up with was to generate a sequence of time from the start to the end of these calls, with a step value of one second (though I guess you could change that to be less accurate), then test to see how many calls would be taking place during each second. Then we find the maximum number of calls for any specific call's range of time. This seems inefficient, but I'm not clever enough to come up with a better strategy.

Your columns start with F, but for this formula the columns start with A. I think the formula below is giving you what you want, though I did see at least one difference compared to what you showed above. For the call that started at 24/04/2024 08:36:54, you got 3 calls, but my formula is showing 4. Even if my formula isn't quite right, I think it might be a step in the right direction.

Excel Formula:
=MAX(LET(start,$A2,end,$B2, all_start, $A$2:$[COLOR=rgb(251, 160, 38)]A$37[/COLOR], all_end, $B$2:$[COLOR=rgb(235, 107, 86)]B$37[/COLOR],time_seq,SEQUENCE((end-start)*24*60*60,1,start,1/(24*60*60)),COUNTIFS(all_start,"<="&time_seq,all_end,">="&time_seq)))
Thanks Vogateer! That worked - did take a while to run though! Changed the highlighted above to match the dataset. Thanks so much for your help!
It doesn't have to be absolutely exact, so what you've put together is perfect.
 
Upvote 0
Thanks Vogateer! That worked - did take a while to run though! Changed the highlighted above to match the dataset. Thanks so much for your help!
It doesn't have to be absolutely exact, so what you've put together is perfect.
Glad to hear it's working! I wish I were clever enough to find a way to calculate this more efficiently, but if you don't need to be accurate down to the second, you could say that a 2 or 3 second overlap is needed before counting the calls as simultaneous, you could change the last 60 to a 30 or 20 and reduce how many specific times are being checked by half or more:

Excel Formula:
=MAX(LET(start,$A2,end,$B2, all_start, $A$2:$A$1000, all_end, $B$2:$B$1000,time_seq,SEQUENCE((end-start)*24*60*30,1,start,1/(24*60*30)),COUNTIFS(all_start,"<="&time_seq,all_end,">="&time_seq)))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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