+ Reply to Thread
Results 1 to 4 of 4

Number of Counts between Time Ranges

  1. #1
    Registered User
    Join Date
    03-07-2011
    Location
    los angeles, california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Number of Counts between Time Ranges

    Hey all,

    I was looking for a formula that would count the number of patients in a waiting room as a fraction of the amount of time they have been waiting per 1 hour intervals. I have attached an excel sheet that will explain it better than I can.

    Black indicates overlap of a 1 hour interval
    Red indicates patient waited withina 1 hour interval with no overlap

    I have provided extra hours at the end for a patient waiting past midnight as to be accounted for.

    Thanks again, much appreciated!!!

    SY
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Number of Counts between Time Ranges

    Like this?

    Please Login or Register  to view this content.
    The formula in D23 and copied across and down is

    =MAX(0, MIN($C23, D$22 + "1:00") - MAX($B23, D$22))

    Not that the arrival times in cols B and C, and the hour intervals in row 22 are all complete dates and times.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-07-2011
    Location
    los angeles, california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Number of Counts between Time Ranges

    Hey shg,

    When I plug in the formula, it just states "#VALUE" in all the cells. I dont know how to change the times into the format that yours is in (2011-0101 04:37), but I tried copying and pasting yours into the cell, and it still didn't work. But that is what Im looking for.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Number of Counts between Time Ranges

    There's nothing special about the format; I just chose it because it's unambiguous internationally. Format the dates any way you like.

    The point is that
    cols B and C, and the hour intervals in row 22 are all complete dates and times.

+ Reply to 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