+ Reply to Thread
Results 1 to 12 of 12

Drop Down Menu linked to COUNTIF Function

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Exclamation Drop Down Menu linked to COUNTIF Function

    We are a doctors office using excel to track outside physician referrals...

    I have 13 sheets in my workbook, 1 for each month, and 1 yearly sheet which totals all referrals by month for each of the 2000 referring physician . Each monthly sheet is a report which lists all incoming referrals.

    Monthly Sheets:
    Column F: Type of referral
    Column W: Physician's name.

    Yearly Sheet:
    G:R Monthly Totals
    U: Physicians Name

    On the yearly report, referrals are accumulated by:
    =COUNTIF('Nov09'!$W$4:$W$1879,$U5)

    I would like to have a drop down menu that lists types of referrals like:
    X-Ray, CT, New, MRI, ALL

    All should count all referrals, but each other selection should separate and only calculate those types of referrals.

    I was thinking i need some sort of multiple criteria COUNTIF function linked to a drop down menu... Any help would be greatly appreciate!!!

    Thank you
    Last edited by mygsprc; 11-08-2010 at 12:34 PM.

  2. #2
    Registered User
    Join Date
    01-08-2010
    Location
    Michigan, US
    MS-Off Ver
    Excel 2007, Outlook 2007
    Posts
    15

    Re: Drop Down Menu linked to COUNTIF Function

    Can you upload the actual spreadsheet... it would help alot.
    Last edited by NBVC; 11-05-2010 at 01:57 PM. Reason: Deleted entire post quote

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop Down Menu linked to COUNTIF Function

    Perhaps something like:

    =IF($X$1="ALL",COUNTA('Nov09'!$F$4:$F$1879),COUNTIF('Nov09'!$F$4:$F$1879,$X$1))

    where X1 contains the dropdown list and 'Nov09'!$F$4:$F$1879 is the list of referrals.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Drop Down Menu linked to COUNTIF Function

    KRBeckman, I cant post the workbook because it contains patient sensitive material.

    NBVC, That is very close, but I need to have it also filtered by the physicians name which is in column U. It is currently giving me all referrals of that type for that month.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop Down Menu linked to COUNTIF Function

    How about,

    =IF($X$1="ALL",COUNTIF('Nov09'!$W$4:$W$1879,$U5),SUMPRODUCT(--('Nov09'!$W$4:$W$1879=$U5),--('Nov09'!$F$4:$F$1879=$X$1))

    where the parameters for the referrals are the same as I had mentioned before

  6. #6
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Drop Down Menu linked to COUNTIF Function

    Hmm.. you are on the right track but something is wrong.. It calculates to 0 when I should be getting a 16.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop Down Menu linked to COUNTIF Function

    Check that the matches are exact in the drop down list and in the source file..... spelling, extra spaces, etc... could affect the results.

  8. #8
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Drop Down Menu linked to COUNTIF Function

    Thank you for your help last week, but I was not able to figure it out over the weekend. I went ahead and deleted all of the patient sensitive information so I could upload the spreadsheet for you.

    To restate my objective:
    S1 contains the dropdown list.

    I would like to replace the formulas in Year!G5:Q1965 to incorporate a filter function relative to S1.

    Any help would be great. Thank you.
    Attached Files Attached Files

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop Down Menu linked to COUNTIF Function

    It is not clear what column on the individual sheets I am supposed to look for matches to your drop down selection

  10. #10
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Drop Down Menu linked to COUNTIF Function

    Oh Sorry,
    The drop down list contains certain VisitTypes which are found in column D of the other sheets.

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop Down Menu linked to COUNTIF Function

    Well since your are using XL2007 (please adjust your profile to match), then you can use, In G5:

    =
    Please Login or Register  to view this content.
    copied down and adjusted for the other column/tab references.

  12. #12
    Registered User
    Join Date
    11-05-2010
    Location
    Toms River, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Drop Down Menu linked to COUNTIF Function

    worked perfect. thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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