+ Reply to Thread
Results 1 to 7 of 7

COUNTIFS with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    243

    COUNTIFS with multiple criteria

    I want to count how many times there is an occurrence of all 8 possible "W/L" & "1,2,3"-scenarios (i.e. WWW, WWL, WLW, WLL, LLL, LLW, LWL,& LWW).

    So in this case there should be 2 "WWW", 1 "WLW", 1 "LLW", 1 "WLL" & 1 "LLL"

    My spreadsheet looks like this: (columns A & B)

    A B
    1 W
    2 W
    3 W
    1 W
    2 L
    3 W
    1 L
    2 L
    3 W
    1 W
    2 L
    3 L
    1 L
    2 L
    3 L
    4 W
    1 W
    2 W
    1 W
    2 W
    3 W

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: COUNTIFS with multiple criteria

    Am I correct that you only count the first 3 cells together and then the next 3 cells together? So not the first to the third and then the second to the fourth?
    When I say semicolon, u say comma!

  3. #3
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    243

    Re: COUNTIFS with multiple criteria

    Short answer "yes". Long answer I would like to "reset" the count with each "1" in column A. For example, at the bottom of my example there are 6 consecutive "W"s, but I would only like to "count" the one string of "WWW" that is across from column A's "1", "2", "3".

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: COUNTIFS with multiple criteria

    Ah got it. If you want this all in one formula, I wouldn't know how (but it's probably possible). If you are OK with adding helper columns, I think I can help you...

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: COUNTIFS with multiple criteria

    If you fill a helper column (say C) with this formula (and drag down), then you can use a simple countif to count the different instances

    =IF(AND(A1=1,A2=2,A3=3),B1&B2&B3,"")

  6. #6
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    243

    Re: COUNTIFS with multiple criteria

    Wow! Amazing. Thanks so much!

  7. #7
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: COUNTIFS with multiple criteria

    You're welcome!

+ 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. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. [SOLVED] COUNTIFS using multiple criteria in same row
    By noremry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2012, 10:30 PM
  3. Replies: 0
    Last Post: 07-27-2011, 01:00 AM
  4. Re: CountIFs with multiple criteria
    By antiscripter in forum Excel General
    Replies: 2
    Last Post: 05-05-2011, 11:55 AM
  5. SUM COUNTIFS with multiple criteria
    By john_london in forum Excel General
    Replies: 4
    Last Post: 02-28-2011, 11:35 AM

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