+ Reply to Thread
Results 1 to 5 of 5

Formula to count number of patients per time interval over 24 hours+

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Wellington, NZ
    MS-Off Ver
    Excel 2013
    Posts
    2

    Formula to count number of patients per time interval over 24 hours+

    Hi all,

    I'm new to this forum so hopefully following all the rules!

    I have been trying to work out a formula for capturing the number of patients in the hospital at half hour time intervals. There are a lot of formulas for capturing this information within a 24 hour period however not a lot of information when the Length of Stay or episode time is +24 hours.

    As you can see in my example spreadsheet below, some of the patients stay for 244 hours (row 9).

    The outcome that I am looking for is that a 1 is placed in all of the time slots when the patient is there. For example if they arrive on Jan 1st at 2.15 and leave on Jan 3rd at 10.30 all of the time slots in between would have a 1 placed in them.

    I have been playing around a lot and think it is probably only possible if you set it up as I have in the example i.e. by having the date running down and the time running across.
    Does anyone have any ideas about how this could work? I have tried SUMIFs and SUMPRODUCT formulas which generally work for Jan 1st but then go wrong for any date after that.

    Thanks for your help!
    Attached Files Attached Files

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

    Re: Formula to count number of patients per time interval over 24 hours+

    Hi There;

    Please find attached your file which I've worked a little on it. Grey colored cells are to hide. They're there to act as helpers to formulas to work properly. Hope this helps

    tac

    example2.xlsx
    Last edited by taccoo73; 01-24-2014 at 06:00 AM.

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Wellington, NZ
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Formula to count number of patients per time interval over 24 hours+

    Hi Tac,

    Thanks for your response. It is helpful but do you think you could talk me through the logic of the formula a bit?

    Thanks again!

  4. #4
    Registered User
    Join Date
    06-28-2010
    Location
    Wiltshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Formula to count number of patients per time interval over 24 hours+

    RemovedasbrokeRule 2
    Last edited by Dr Martin; 02-28-2014 at 06:13 AM. Reason: RemovedasbrokeRule 2

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to count number of patients per time interval over 24 hours+

    Dr Martin


    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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] Count Number of Hours based on time
    By Locust in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2013, 11:11 AM
  2. 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
  3. How to Count number of overlapping rows within a time interval
    By czou6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2013, 04:45 PM
  4. Replies: 0
    Last Post: 04-23-2012, 10:06 AM
  5. How to count number of people per time interval
    By chinkygirl in forum Excel General
    Replies: 1
    Last Post: 02-11-2012, 01:33 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