+ Reply to Thread
Results 1 to 6 of 6

Count Based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Count Based on Multiple Criteria

    Column A
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    Column B
    1
    2
    3
    4
    5
    6
    7

    Column C
    1
    2
    3
    4
    5
    6
    7

    I need to count the occurences of the values 1, 2, 3, 4, 6 in Columns B & C if the criteria in Column A is satisfied which is Column A values must be either 1, 2, 3, 4, 7 or 11.

    What is the most efficient way to do this?

    Thank you

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

    Re: Count Based on Multiple Criteria

    I am a little confused... the 3 columns are not the same size.... and am not sure exactly what you mean? what are the b and c criteria, if any?
    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.

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Count Based on Multiple Criteria

    Countif-Example.jpg

    In the attached example: I want to count all instances in columns B to J where numbers 1,2,4,6,7 occur buy only if column A is equal to 1,2,3,4,7,11

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

    Re: Count Based on Multiple Criteria

    So are we saying that in order to count as 1, a specific row in column A must contain one of 1,2,3,4,7,11 and columns B:J in the same row must contain any (or all) of 1,2,4,6,7?

  5. #5
    Registered User
    Join Date
    06-07-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Count Based on Multiple Criteria

    That is correct.

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

    Re: Count Based on Multiple Criteria

    Try something like:

    =SUMPRODUCT(--ISNUMBER(MATCH(A1:A100,{1,2,3,4,7,11},0)),--(MMULT(--(ISNUMBER(MATCH(B1:J100,{1,2,4,6,7},0))),{1;1;1;1;1;1;1;1;1})>=1))

    where row 100 is bottom of range.. adjust as necessary.

+ 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