+ Reply to Thread
Results 1 to 8 of 8

count patients in waiting given entry and exit times

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2003
    Posts
    4

    count patients in waiting given entry and exit times

    Given the times when a patient enter a waiting room and when they leave I need to keep track of the number of patients in the waiting room during each state change. A state change would be when a new patient comes in or a patient leaves (called for service).
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: count patients in waiting given entry and exit times

    Hi volman;

    I think the second file attached in the following link can give you some ideas about that.

    HTML Code: 
    Regards;

    tac

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: count patients in waiting given entry and exit times

    Convert your data in column C to times...

    Then put the following in D2, and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will show you how many patients were in the waiting room at the time each patient entered.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: count patients in waiting given entry and exit times

    hi
    d3 cell =SUMPRODUCT(--($C$2:C3>=B3))
    then drag down

    Good Luck
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: count patients in waiting given entry and exit times

    Quote Originally Posted by OllyXLS View Post
    Convert your data in column C to times...

    Then put the following in D2, and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will show you how many patients were in the waiting room at the time each patient entered.
    Doesn't appear to subtract for those that are leaving:

    Patient Enter Wait Room Called by Nurse
    1 9:22 9:30 2.00
    2 9:22 9:30 2.00
    3 9:42 9:50 3.00


    Hmmmm.

    Patient 1 should show 1
    Patent 2 should show 2 since we now have 2 in the waiting room.
    When patient 3 enters the other 2 have left so I would want to be back at 1.

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: count patients in waiting given entry and exit times

    Did you convert column c to time values, as I suggested? In the original workbook you posted, the time entries in column c were stored as text...

  7. #7
    Registered User
    Join Date
    02-10-2014
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: count patients in waiting given entry and exit times

    I thought we had it, but doesn't appear to subtract out those patents that leave.

  8. #8
    Registered User
    Join Date
    02-10-2014
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: count patients in waiting given entry and exit times

    Yes there was issue there....I think we might have it now.

+ 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. If formula for waiting times
    By sophy_1402 in forum Excel General
    Replies: 3
    Last Post: 09-02-2011, 10:18 AM
  2. Formula to record patients on an ongoing waiting list
    By sophy_1402 in forum Excel General
    Replies: 1
    Last Post: 08-18-2011, 07:58 AM
  3. waiting times for different conditions
    By sophy_1402 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2011, 08:12 AM
  4. Work out waiting times.
    By kinder in forum Excel General
    Replies: 1
    Last Post: 06-04-2008, 08:03 AM
  5. How do I count the # of times an entry has been made in a month?
    By Wayne in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 12-28-2005, 05:45 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