+ Reply to Thread
Results 1 to 9 of 9

Calculating # of Patients in process by Hour of Day

Hybrid View

jsolofly Calculating # of Patients in... 04-24-2012, 04:00 PM
Paul Re: Calculating # of Patients... 04-24-2012, 04:56 PM
jsolofly Re: Calculating # of Patients... 04-25-2012, 12:04 PM
Russell Dawson Re: Calculating # of Patients... 04-25-2012, 08:52 PM
Russell Dawson Re: Calculating # of Patients... 04-26-2012, 02:25 AM
jsolofly Re: Calculating # of Patients... 04-26-2012, 09:51 AM
Russell Dawson Re: Calculating # of Patients... 04-26-2012, 12:27 PM
Russell Dawson Re: Calculating # of Patients... 04-26-2012, 07:25 PM
jsolofly Re: Calculating # of Patients... 04-27-2012, 03:36 PM
  1. #1
    Registered User
    Join Date
    04-24-2012
    Location
    Greenfield, MA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Calculating # of Patients in process by Hour of Day

    Hello,

    I'm trying to figure out a way that I can calculate the # of patients that were in process (at the hospital) by hour of day (0-24). I have a unique account, # the start and depart times for all patients, but can't seem to wrap my mind around counting the # of patients that were here over many hours. For example lets say Patient A was here from 3pm to 8pm. This patient would be included in hours 15-20.

    I ultimatley would like to have the output look like this:

    Hour of Day: 0 1 2 3 4 5 6 7 8 9 10 .......
    # of Cases in Process: 5 2 7 10 12 15 8 13 11 ........

    Any suggestions would be greatly appreciated.

    Thanks.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Calculating # of Patients in process by Hour of Day

    Hi Jsolofly, welcome to the forum.

    Might I suggest you upload a sample workbook that has the same layout and data type as your actual workbook? Include fake data of the same type where it would normally be on your workbook, and show what results you would expect and where. I'm sure we could create a formula for you without it, but then it might take another 10 posts to get it to work in your actual layout.

  3. #3
    Registered User
    Join Date
    04-24-2012
    Location
    Greenfield, MA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating # of Patients in process by Hour of Day

    Not a problem. I'm attaching simple workbook that gives a good idea of what I'm working with and what I would like to get as a result. Thanks for the help and please let me know if there is anything else I can provide that would be helpful.
    Attached Files Attached Files

  4. #4
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Calculating # of Patients in process by Hour of Day

    See next post
    Last edited by Russell Dawson; 04-26-2012 at 08:13 AM.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  5. #5
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Calculating # of Patients in process by Hour of Day

    Updated workbook
    Attached Files Attached Files
    Last edited by Russell Dawson; 04-26-2012 at 02:29 AM.

  6. #6
    Registered User
    Join Date
    04-24-2012
    Location
    Greenfield, MA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating # of Patients in process by Hour of Day

    Russell Dawson,

    Thanks you so much for your help. As you stated it looks like this works perfect if the Arrival Hour is before the Depart Hour, but gets lost when it is the other way around (ex. arrived hour 22 departed hour 3). Is there any way around this?

    Thanks again for the help.

  7. #7
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Calculating # of Patients in process by Hour of Day

    Depends upon the way it's going to be used. As you have it it looks like it's meant to be just a page per day to be reused. You could add extra days to enable you to slip over the 24 hour mark but if what you want is to record an hour by hour count then it should work. It's at the start and end of the day that could be problematical but if, say someone starts in the last hour then 24 is input. If they depart in the same hour then 24 is input and you have a count for that hour. Similarly, if start is after midnight and departs in same hour the same applies. You do say that it is meant to be a record of patients that were in process and it doesn't intend to be a dynamic s/s that is updated as time proceeds so it should be sufficient for your needs. I know it's not perfect and I will give it more thought (another sleepless night ahead!) If I think of anything I'll get back to you. Anyway, who would be discharging patients around midnight? Ah - Emergency room or whatever you guys call it!

    Cheers

    Russell

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Calculating # of Patients in process by Hour of Day

    Try this. I've not tested to destruction but you will see that it allows for the move into the next 24 hour period. If you want to create a week then that can be your project for the weekend!
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-24-2012
    Location
    Greenfield, MA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating # of Patients in process by Hour of Day

    Hi Russell,

    This is extremely helpful. I appreciate your time and effort in helping come up with a solution for this. I'll take if from here and will expand it to a week. Thanks again.

+ 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