+ Reply to Thread
Results 1 to 7 of 7

Count Cells using 3 criteria

  1. #1
    Registered User
    Join Date
    05-17-2005
    Posts
    6

    Question Count Cells using 3 criteria

    I saw the sumproduct thread below with 2 criteria but I need 3. Can anyone help me with 3 criteria?

    A B C D E F G H
    1 YES YES YES YES YES YES Single Mengor
    2 YES YES YES YES YES YES Single Hyatt
    3 NO YES YES YES YES NO Double Hyatt
    4 NO YES YES YES YES NO Double Mengor
    5 NO YES YES YES YES NO Single Mengor
    6 NO YES YES YES YES NO Single Mengor
    7 NO YES YES YES YES NO Single Mengor
    8 NO YES YES YES YES NO Single Mengor

    So if I wanted to count the "YES" in column A, the "Single" in column G and Hyatt in column H and they must meet all 3 criteria, how would I create the formula?

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by mls2125
    I saw the sumproduct thread below with 2 criteria but I need 3. Can anyone help me with 3 criteria?

    A B C D E F G H
    1 YES YES YES YES YES YES Single Mengor
    2 YES YES YES YES YES YES Single Hyatt
    3 NO YES YES YES YES NO Double Hyatt
    4 NO YES YES YES YES NO Double Mengor
    5 NO YES YES YES YES NO Single Mengor
    6 NO YES YES YES YES NO Single Mengor
    7 NO YES YES YES YES NO Single Mengor
    8 NO YES YES YES YES NO Single Mengor

    So if I wanted to count the "YES" in column A, the "Single" in column G and Hyatt in column H and they must meet all 3 criteria, how would I create the formula?

    The formula

    =sumproduct(--(A1:A8="Yes"),--(G1:G8="Single),--(H1:H8="Hyatt"))

    should help you out.

    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Registered User
    Join Date
    05-17-2005
    Posts
    6

    Came Up with 0

    I used your formula and it gave me a zero. If I take the "hyatt" formula out of the equation I get a number. Any other suggestions?

  4. #4
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by mls2125
    I used your formula and it gave me a zero. If I take the "hyatt" formula out of the equation I get a number. Any other suggestions?
    I do not know what else to say ... I tested the formula and it works.

  5. #5
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Maybe, you can try this and see if it works for you.


    =sumproduct((A1:A8="Yes")*(G1:G8="Single)*(H1:H8="Hyatt"))


    Regards.

  6. #6
    Registered User
    Join Date
    05-17-2005
    Posts
    6
    I get a number that is not accurate when using the formula. Can you tell me what the -- means? I notice if I increase or decrease by 1 (-) I get the exact opposite number (negative). I have been trying to use the sumproduct formula for hours now and using the * between () results in #VALUE.

  7. #7
    Registered User
    Join Date
    05-17-2005
    Posts
    6
    Is there some IF statement I can use stating that IF H1:H8="Hyatt" and then sumproduct(--(A1:A8="yes"),--(G1:G8="Single")??

    The formulas above are not working for me for some reason.

    Thanks for anyone's help!

+ 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