+ Reply to Thread
Results 1 to 8 of 8

Using a drop down list field to determine a criteria in Countifs function - need ALL

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Using a drop down list field to determine a criteria in Countifs function - need ALL

    Hi there,

    So I am currently populating a table by using the countifs function based on 4 separate criteria, one of which is using a drop down list field as the criteria. What I would like to do is hbe able to have an "All" option, so rather than just selecting one item from the drop down menu, I'd like to be able to select everything so that I can also get a total? Is this possible?

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    Try

    =COUNTIFS(range1,criteria1,range2,IF(criteria2="All","<>",criteria2))

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    Hi Jonmo,

    Thanks for the quick response. However, I need the "all" option to be in the drop down list field, not the actual formula. The idea is that I can change the drop down to repopulate my results as necessary, but I would like to see the individual options, and a total or all option as well?

    Is this possible?

    Thanks

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    What's stopping you from putting the word ALL in the dropdown list?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    Didn't mean to sound so blunt.

    Here's an example
    The word All is included in the DataValidation dropdown.

    I only used countif (not countifS), but the principle is the same for either..

    EFLucied.xlsx

  6. #6
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    I don't want the actual word ALL. ALL isn't part of the drop down list or the data. So for example... in my dropdown list I have: A, B, C, D. I want to be able to choose one of each, but then also see the results of the total of A, B, C & D together. Does that make more sense?

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    I'm suggesting you add the word All to the dropdown.
    Sorry, I can't think of any other way to do it.

    It doesn't have to be the word all, it can be anything you want, even a blank.
    That might actually be best, to include all the criteria in the count, leave the criteria cell blank, with nothing selected from the dropdown and use

    =COUNTIFS(range1,criteria1,range2,IF(criteria2="","<>",criteria2))

  8. #8
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    I worked it out! I added the wildcard value "*" to the list so that if that is chosen, it counts everything.

    Thank you for all your help!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a drop down list field to determine a criteria in Countifs function - need ALL

    Glad you got resolution.

    FYI, that will only work on TEXT criteria.
    It will not include numeric values in the count.
    Also if there are formula blanks (="") in the range, it WILL count those.

+ 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. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  2. Drop Down List to Determine Range
    By ARayburn in forum Excel General
    Replies: 4
    Last Post: 08-28-2013, 09:48 AM
  3. Replies: 2
    Last Post: 11-06-2012, 06:40 PM
  4. [SOLVED] Can't use two drop downs to determine what's in another field with my IF statement
    By llovetrain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2012, 10:56 AM
  5. COUNTIF function using a drop down list source data as the criteria.
    By Stevie-B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-07-2008, 08:22 AM

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