+ Reply to Thread
Results 1 to 4 of 4

Countif with OR condition

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    72

    Countif with OR condition

    Hi,

    I am looking to count number of rows based on information from 2 columns.

    In the attached example I am looking to;

    - look up Project Number in list
    - Count number of IDs in list which have a status of "Active" or "Complete" in status column.

    I have attempted the formula in cell M5, however it isn't counting. Current attempt is;

    =COUNTIFS(G:G,G4,I:I,OR("Active","Complete"))

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Countif with OR condition

    try it this way... =SUM(COUNTIFS(G:G,G4,I:I,{"Active","Complete"}))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    01-08-2020
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    72

    Re: Countif with OR condition

    Thanks thats perfect!

    Can I ask why does it need the different brackets? {}

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Countif with OR condition

    It is creating an array type condition. And, thank you for the rep!

+ 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. COUNTIF while a condition is met
    By sugar824 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2017, 10:05 PM
  2. [SOLVED] Countif's with if condition
    By geliedee in forum Excel General
    Replies: 2
    Last Post: 07-13-2015, 05:37 AM
  3. How to use CountIF() with a condition?
    By dlowrey in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-09-2013, 02:18 PM
  4. Excel 2007 : Countif with an or condition
    By matt1234 in forum Excel General
    Replies: 4
    Last Post: 05-29-2011, 01:54 AM
  5. Countif - add another condition
    By Excel Beginner99 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-14-2010, 11:16 AM
  6. Countif condition a or condition b....
    By solnajeff in forum Excel General
    Replies: 1
    Last Post: 08-23-2009, 12:32 AM
  7. countif condition
    By xtrmhyper in forum Excel General
    Replies: 3
    Last Post: 05-31-2005, 11: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