+ Reply to Thread
Results 1 to 4 of 4

Counting when at least one condition is met

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Counting when at least one condition is met

    Hi,

    The COUNTIFS function counts the number of occurrences when ALL stipulated conditions are met.

    Can someone please suggest a formula to count the number of times that AT LEAST ONE condition is satisfied?

    Thanks!
    Last edited by andrewc; 03-27-2014 at 12:53 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Counting when at least one condition is met

    Maybe:
    =COUNTIF(RANGE,Condition_1)+COUNTIF(RANGE,Condition_2)
    Or:
    =SUMPRODUCT((RANGE=Condition_1)+(RANGE=Condition_2))
    Quang PT

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Counting when at least one condition is met

    Allkey suggested this alteration to me recently that I like:
    =SUM(COUNTIF(RANGE,{Condition_1,Condition_2,Condition3}))
    e.g.
    =SUM(COUNTIF(A1:A100,{"a","b"}))

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Counting when at least one condition is met

    Thanks very much

+ 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. Counting with several condition
    By mirrixx in forum Excel General
    Replies: 2
    Last Post: 02-19-2011, 02:03 PM
  2. Counting with Condition
    By preyesone in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2011, 06:25 PM
  3. Counting until a condition and then, again counting from start
    By amitraiforyou in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2010, 05:25 PM
  4. Counting when row has certain condition
    By Jaymond Flurrie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2006, 02:10 PM
  5. [SOLVED] Counting Values on a condition
    By madeforidiots in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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