Closed Thread
Results 1 to 27 of 27

Figure out occurence of overlapping date & time

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2009
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Figure out occurence of overlapping date & time

    Hi Telyn,

    It was a typo on my part when I created the range names. I forgot a $ in front of one of the numbers for the absolute reference. It confused me because it worked for the first row and not any of the others. Now the formula works on all rows. So thank you very much for that because I learned a whole lot from just trying to understand that formula.
    Now I'm trying to figure out how times I had 24 calls going on at once.
    So the criteria for this formula seems to be.

    1. Call_X overlaps with at least 24 calls and at least the 23 calls immediately after Call_X all overlap with at least 24 calls.

    =COUNTIF(C2:C25>24)

    And then copy that down? Seems like there should be something simple to calculate this, since the hard work has been done already. Still thinking this through but wanted to update you at least.
    Thank you very much and have a great weekend.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Figure out occurence of overlapping date & time

    Hi Yonkers,

    I've had another think about the challenge, and I believe we're attacking it from the wrong angle, because we're not asking the right questions.

    Currently, we're asking: how many calls went on during the current call? Example: We have a 10 minute long call. During its duration there were 6 other short calls, none of the short calls overlapped:

    long call ******************
    short calls ** ** ** ** ** **

    The formula I've been working on would count 7 calls total. But that's not quite right. At any one point in time there were only ever two calls going on at the same time.

    Therefore, I think the question we need to ask is: When Call A starts, how many other calls are already going on?

    We really only need to look at the start of the call, because if during Call A another Call B starts, that Call B will then count its respective concurrent calls, including Call A.

    When you look at the chart I made in the previous post, the calls run horizontally and you want to know how often a vertical line crosses 24 calls. Draw that vertical line at the start of each call and you have your result.

    So, very simple formula to calculate calls going on at the same time (using the range names for the start and end times of calls):

    =SUMPRODUCT(--(B2>=callStarts),--(B2<=callEnds))

    In the attached workbook I've also build a little table to show the counts of the concurrent calls.

    Take some time to mull over that. It's not a simple challenge, but the solution actually is simple. I feel that looking at the chart helps to get a better feel for what needs to be analysed, and playing with the start and end times of calls will help visualise certain scenarios.

    Hope that helps

    teylyn
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-18-2009
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Figure out occurence of overlapping date & time

    Hi Teylyn,

    Sorry for the slow response. And thanks for mulling this over. I still haven't had a chance to digest all of what you wrote. I will do so tonight.
    But I wanted to reply and say that that I don't think our previous efforts were for naught. Our previous effort was to see how many other calls the current call overlapped with. Well, the only calls I care about are ones that overlap with at least 23 others. None of the calls with less than 24 overlaps will fit the criteria that I care about. So through our effort from last week, I was able to rule out 26k of the 30k calls. So we only need to work with 4k phone calls now
    Now I need some time looking at your most recent post.
    Thanks again.

  4. #4
    Registered User
    Join Date
    03-04-2013
    Location
    Halifax NS
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Figure out occurence of overlapping date & time

    Thank you so very much for this solution! I used it to calculate the maximum number of desks being utilized concurrently in a very popular space in a healthcare facility. This worked wonderfully.

    Thank you again. I had been struggling with pivot charts and vba for quite some time.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1