+ Reply to Thread
Results 1 to 15 of 15

Calculating numberr of patients seen every two hours in ED

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Calculating numberr of patients seen every two hours in ED

    Hi;
    I need to find out how many patients are seen every two hours per day of week for an entire year in the emergency department.
    I've included a small data set that I have cleaned up from the electronic medical records.
    What I am trying to discover:
    The busiest times in the emergency department so that I can staff accordingly.

    The actual data set is HUGE. It is for an entire year. But once I have a formula, I can calculate for the entire year.

    And as an FYI: I have learned formulas on this forum that I have used so much in my work...so THANK YOU FOR YOUR HELP!!!!
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Hi Jules - You weren't specific about the counting process, so I did two columns. They're based on 30-minute intervals, as that's pretty standard for this type of problem. Fairly easy to lengthen them to 2 hours if you prefer.

    Number of patients ADMITTED during each interval (in B2 and down):
    =SUMPRODUCT((Sheet1!$C$2:$C$22 > = Sheet2!$A2)*(Sheet1!$C$2:$C$22 < Sheet2!$A2+1/48))

    Number of patients ON-SITE during each interval (ARRAY FORMULA in C2 and down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    NOTE: Since Excel tracks time as fraction of a day, the 1/48 in each formula equals 30 minutes.

    *You must press CTRL+SHIFT+ENTER to confirm entry of an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.




    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 06-18-2017 at 02:12 AM.

  3. #3
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    THANK YOU!!!!!!!!!!!!!!!!!!
    I never thought about using the sum product...I have been trying to figure it out with Pivot Tables!!!!
    I so appreciate your time.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Jules- Noticed a problem with second formula. It wasn't handling [patients admitted before midnight, discharged after] correctly. Here's the fix:
    Number of patients ON-SITE during each interval (ARRAY FORMULA in C2 and down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    *You must press CTRL+SHIFT+ENTER to confirm entry of an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.


    NOTE: Also updated Post #2 formulae+workbook with above fix.
    Last edited by leelnich; 06-18-2017 at 02:18 AM.

  5. #5
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    that is great...
    Now I can see how many are in the building (ED AND ACUTE CARE-)(when I figure that out)....that's awesome.
    THANK YOU!!!!!!!!!!!!!!!
    That's more than I thought could be done...Appreciate you taking the time this is so helpful....

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Happy to be of service, thank you for the rep! Take care-Lee

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Addendum- Workbook for multiple dates
    Jules- As per PM request, a workbook that processes multiple dates. This actually simplified the ON-SITE calculation. I've used Named Ranges in the formulae, just change their Refers To: ranges as required. Here are the formulae (BOTH standard. NO MORE ARRAY FORMULA.)

    Patients Admitted In A3:AX3 and down:
    =SUMPRODUCT((ADMIT_DATE=$A3)*(ADMIT_TIME>=C$2)*(ADMIT_TIME<(C$2+Interval_Length)))

    Patients On-Site In AY3:CT3 and down:
    =COUNTIFS(ADMIT_DATE_TIME,"<" & ($A3+AY$2+Interval_Length),DISCH_DATE_TIME,">="&($A3+AY$2))

    The Work area can be filtered by Date, Weekday, or both.
    Attached Files Attached Files
    Last edited by leelnich; 06-19-2017 at 01:56 PM.

  8. #8
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    OMG....this is amazing.
    I have no words.
    I am going to study this formula because that is how I learn.
    But you have done is way beyond what I thought was possible.
    THANK YOU so much. I am extremely grateful for your time and talent.
    Now, I can get an idea of where to staff appropriately and use the formula to evaluate the acute care unit next.
    MUCH gratitude............

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Happy to oblige! Sorry I didn't respond sooner to your PM, yesterday was busy for me. Take care. - Lee

  10. #10
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    Never mind...
    OMG...I've been working on this stuff too long.
    Figured it out.

  11. #11
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    Hi Lee;
    Okay, so I have gotten this far on the Acute Care counts and it works great, but I don't know what I am doing wrong when I use the formula for the onsite counts. It doesn't seem right to me.
    What am I doing wrong?

    So close to getting the information needed.
    If you have time to look at this....thank you ever so much.
    Jules
    Attached Files Attached Files

  12. #12
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    Right idea, but you're doing daily totals, so you need 1 row per day = 366 rows, since 2016 was a leap year. However, we have a problem. The COUNTIFS function was introduced in Excel 2007, but the workbook you sent pre-dates that. I'll re-write that formula, but can you find out what version your clinic is using?

  13. #13
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    Hey Lee;
    Sorry, I was in a meeting. That is so weird. I wonder if when the system dumps the information, it reverts to something older than what I thought we used.
    I thought it was 2013, but obviously not.
    Hmmmmmmmmm....
    checking with IT to verify.

  14. #14
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating numberr of patients seen every two hours in ED

    It may just be a conscious choice to make the info compatible with the widest variety of "downstream" systems. I can re-write using SUMPRODUCT, but I've heard full-column references such as those used in your Name definitions may be a little unpredictable.

  15. #15
    Registered User
    Join Date
    10-26-2014
    Location
    Leavenworth, WA
    MS-Off Ver
    2010
    Posts
    82

    Re: Calculating numberr of patients seen every two hours in ED

    And I see where I made the mistake on dates.
    I am in the process of doing 366 days for the year.
    Should I change the Naming construction?

+ 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. Replies: 5
    Last Post: 04-13-2017, 11:05 AM
  2. Formula to count number of patients per time interval over 24 hours+
    By RM1984 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2014, 11:30 AM
  3. Calculating number of patients by arrival time (hr)
    By alowry in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-30-2013, 02:33 PM
  4. Replies: 7
    Last Post: 07-25-2012, 09:14 AM
  5. Calculating # of Patients in process by Hour of Day
    By jsolofly in forum Excel General
    Replies: 8
    Last Post: 04-27-2012, 03:36 PM
  6. Replies: 1
    Last Post: 11-29-2011, 12:19 AM
  7. Calculating Patients Per Hour of Day
    By Skoal in forum Excel General
    Replies: 0
    Last Post: 05-10-2005, 03:37 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