+ Reply to Thread
Results 1 to 2 of 2

Trying to figure out how to create a cascading filter formula.

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Trying to figure out how to create a cascading filter formula.

    Hi.. first time using this forum.. some background: I have a really large dataset with common medical errors in all 50 states sorted by year. My goal is to have the spreadsheet work so that you enter a year in a cell on Sheet1 and it tells you how many of each type of medical error occurred in each state in that year.

    I've already set it up so that if you enter a year it tells you the number of overall errors by using a countif function. I also have a separate count which returns the number of total errors in each state by running a formula on a separate sheet called "MALSTATE" which utilizes an IF function to return the state if and only if the year in the column for year (in this case E) on the sheet titled "Data" matches the year entered into the input cell on the sheet titled "First"

    {=IF(Data!W2=First!$A$2,Data!J2)}

    And then there's another set of countifs which counts the number of errors in each state, i.e.=

    {=COUNTIF(C2:C383466,"MA")}

    So here's where I'm stuck.. I want to have a formula which ranks the practice areas which have the most errors, and which types of errors occur most frequently.

    I guess I'm leaning towards creating a pivot table but I was wondering if there were any other ways to do this?

  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: Trying to figure out how to create a cascading filter formula.

    You have new functions available to you. You may get what you want using COUNTIFS() instead of COUNTIF().
    _________________
    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!)

+ 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. Best way to create form with multiple cascading drop downs.
    By 123Excel00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2013, 05:06 AM
  2. Add Filter To Cascading Combo Boxes
    By Spencer in forum Excel General
    Replies: 9
    Last Post: 12-21-2010, 12:40 PM
  3. [SOLVED] Cascading drop down filter
    By Francisco in forum Excel General
    Replies: 2
    Last Post: 08-17-2006, 05:25 PM
  4. [SOLVED] Create a cascading list box using Excel
    By JPB in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 05:06 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