+ Reply to Thread
Results 1 to 9 of 9

Suming an ongoing waiting list

  1. #1
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Suming an ongoing waiting list

    Hi there,

    Please could someone offer me assistance with the following formula. I have a database for the year and one of the things I keep track of monthly is patients who do not yet have an appt date and are on a waiting list.

    If you look at the attachment you can see that the cell becomes red for any patients who are on the waiting list. I would like to track the ongoing waiting list, which would include patients still on the waiting list from previous months on different worksheets.

    For example, the ongoing waiting list count for March would include march, feb and Jan.
    For feb, it would include feb and Jan. And so on for the rest of the months of the year.

    Please could you show me how to compose a formula that would count the current month waiting list and that of the previous months...hope this makes sense?!

    Thanks,

    Sophy
    Attached Files Attached Files
    Last edited by sophy_1402; 08-23-2011 at 07:05 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Suming an ongoing waiting list

    1) Add a blank worksheet to your workbook.
    2) Name it FIRST and put it at the beginning of all sheets
    3) Hide this sheet, it will always be before sheet JAN this way.

    4) Add a blank worksheet to your workbook.
    5) Name it LAST and put it at the END of all sheets
    6) Hide this sheet, it will always be after the last visible sheet, even if you add more

    The formula that will give you a count for all entries in column J on all sheets in between First and Last is:

    =COUNT(First:Last!J:J)

    The attached wb shows this, all that is left is for you to hide the added "boundary" sheets.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Suming an ongoing waiting list

    That's a great method, thanks for that. However, this formula will give me the all the entries in column G. But, what I want to count is only the red cells in column G (i.e. the patients who do not yet have an appt). Is there a formula that will allow me to do that?

    Thanks for your help

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Suming an ongoing waiting list

    For counting colored cells? No.

    That may be available in the latest versions of Excel, but not ours.

  5. #5
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Suming an ongoing waiting list

    How about a formula that will count blank cells in the appt column, but only if there is a patient inputted into the row? Thanks

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Suming an ongoing waiting list

    Something like:

    =SUMPRODUCT(--($A$4:$A$100<>""), --($J$4:$J$100=""))

  7. #7
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Suming an ongoing waiting list

    Thanks, that formula works well for one month at a time. What do I need to add to that formula to ensure that I am counting the patients waiting from previous months?

    I would like to us the original method of hiding boundary sheets, is it possible to merge the 2 formulas you have provided me with into 1. So that, I am counting the patients without appts (blank cells in G) dates for all of the months? Cheers

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Suming an ongoing waiting list

    Since columns are free, let's add one more to make this simple.

    On your monthly sheets, add a new column O called "waiting". In O4 add this formula and copy down as far as needed:

    =IF(AND(A4<>"", J4=""),1,"")


    Now your 3D sum formula will simply be: =SUM(First:Last!O:O)

  9. #9
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Suming an ongoing waiting list

    Thanks for all your help, that does the job perfectly!

    Sophy

+ 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