+ Reply to Thread
Results 1 to 4 of 4

Daily Census

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    1

    Daily Census

    Brand new to this forum, and novice to vba
    We have a log with client information. It has dates of admission and dates of discharge. I'm trying to calculate for any given period with a start and end dates how many clients were enrolled daily and then give a grand total. Right now it's only calculating a total for that period. It doesn't calculate a daily total and accumulate it. Any help would be greatly appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Daily Census

    You can use COUNTIFS and SUMIFS to count and total entries that match several constraints, for example, >= and <= a date in a cell.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Daily Census

    Welcome to the forum!
    The attached workbook may give you some ideas. I made an list of dates and then used the SUMIFS function to create the count of patients for each day. See if you can figure it out and ask any questions you like. I am sure that you will want to generalize this.
    Maria.xlsx
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Daily Census

    It sounds like you need a check register but using admitted instead of credit, discharged instead of debit and daily census instead of balance.
    So, daily census = previous daily census + admitted - discharged.

+ 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