+ Reply to Thread
Results 1 to 5 of 5

Calculating overlapping date/time for Ambulances for a month

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    2

    Calculating overlapping date/time for Ambulances for a month

    Hello all,
    I'm new here and somewhat of an OK excel user. I am the director over an Ambulance service and I am trying to create a formula showing me how many times 2 or more of my trucks were busy on a call. I have a few different cells, A is the date of occurrence, B Time the call started, C time the truck was available, and D duration of time the truck was out of service. With those data sets, how can I generate a report to show overlapping calls where 2 or more trucks were out of service during the same time period?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,409

    Re: Calculating overlapping date/time for Ambulances for a month

    Please add to your workbook the bit in red and bold below:


    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).


    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-22-2019
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    2

    Re: Calculating overlapping date/time for Ambulances for a month

    Thank you. What I need to see is how many overlapping calls there were on any given day. I have added the red/bold expected outcomes to the right in columns F and G.


    Thank you,
    Mike
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Calculating overlapping date/time for Ambulances for a month

    Hello mpittmanfl and Welcome to Excel Forum.
    See if the following is useful.
    Column E is populated using: =A3+B3<A2+C2
    Note that column E could be moved and/or hidden for aesthetic purposes.
    The Number of overlapping calls column is populated using: =COUNTIFS(A$2:A$82,F2,E$2:E$82,TRUE)
    Note that the rows where an overlap occurs are highlighted.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculating overlapping date/time for Ambulances for a month

    Helper column E is used . In E2 then copied down.

    =SUMPRODUCT(($A3:$A$82=$A2)*($B3:$B$82< $C2)*($C3:$C$82> $B2))

    In H2 then copied down.

    =SUMIF($A$2:$A$82,$G2,$E$2:$E$82)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calculating # of Overlapping days with several date ranges and conditions
    By ZafferAhmed in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-30-2021, 05:44 AM
  2. [SOLVED] Calculating #Workdays overlapping between 2 sets of date ranges (per person)
    By pluqk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2016, 09:34 AM
  3. Calculating the overlapping time intervals
    By Mukund03 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2015, 07:20 PM
  4. Calculating overlapping time interval period during a certain duration
    By Mukund03 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2015, 01:08 PM
  5. Calculating # of Overlapping days with several date ranges.
    By CarlSVM in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-06-2014, 07:09 AM
  6. [SOLVED] Overlapping or Duplicate Date &amp;amp; Time
    By Mike in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  7. Overlapping or Duplicate Date & Time
    By Mike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-17-2005, 06:05 PM

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