+ Reply to Thread
Results 1 to 7 of 7

Calculate Census Monthly/Yearly

  1. #1
    Registered User
    Join Date
    12-05-2018
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    5

    Calculate Census Monthly/Yearly

    I need to calculate the census by month and year for patients with Admit and Discharge dates.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Calculate Census Monthly/Yearly

    Hello zcavaricci. Welcome to the forum.

    Assuming Admit/Discharge are in columns A/B and output starts in D3 enter this in D3:O6
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    12-05-2018
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: Calculate Census Monthly/Yearly

    Good Evening Dave! While your solution worked for the sample data, when I added all the patients with their Admit/Discharge Dates (and changed the formula to look at the extra rows), the calculation seems to not work? I have attached the excel workbook.
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate Census Monthly/Yearly

    Please try E3 and copy acro

    =SUMPRODUCT(($B$2:$B$111>=--(E$2&$D3))*($A$2:$A$111<=--(E$2&$D3)))

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Calculate Census Monthly/Yearly

    I get different numbers than Bo_Ry with this ... for example 38 for 9/2018 ... which I believe is correct.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate Census Monthly/Yearly

    Dave, You're right. It should be 38

    Need to add Eomonth
    =SUMPRODUCT(($B$2:$B$111>=--(E$2&$D3))*($A$2:$A$111<=EOMONTH(--(E$2&$D3),0)))

  7. #7
    Registered User
    Join Date
    12-05-2018
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: Calculate Census Monthly/Yearly

    Thank you FR and BR!!! Great work, I could never have figured out those formulas!

+ 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. How to calculate irr with monthly and yearly cashflows
    By alive555 in forum Excel General
    Replies: 1
    Last Post: 08-27-2015, 11:47 AM
  2. Monthly, Bi-monthly, Quarterly, Yearly Report Tracking Help
    By eugene_lys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2014, 11:08 PM
  3. Calculate daily hours but save as monthly and yearly hours each day
    By auzgts in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-17-2014, 06:14 AM
  4. Calculate monthly, quarterly, and yearly averages from daily data
    By jhound in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2013, 11:16 AM
  5. Replies: 1
    Last Post: 03-08-2013, 04:18 PM
  6. Replies: 5
    Last Post: 03-07-2013, 11:38 AM
  7. Replies: 3
    Last Post: 02-12-2011, 12:10 PM

Tags for this Thread

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