+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS using multiple criteria - maybe an OR function?

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    5

    COUNTIFS using multiple criteria - maybe an OR function?

    I want to count the number of times the following conditions are met. I am trying to use the COUNTIFS function but I got stuck when the criteria can be any of 3 options. I don't want to count the pink apples.
    Column A="Apple"
    AND Column B="red" OR Column B="Yellow" OR column B="Green)

    Please see attachment
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIFS using multiple criteria - maybe an OR function?

    This formula will give you an "OR"

    =SUM(COUNTIFS(A1:A16,"apple",B1:B16,{"Red","Yellow","Green"}))

    ....or for your example this will give the same result

    =COUNTIFS(A1:A16,"apple",B1:B16,"<>Pink")
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-09-2014
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: COUNTIFS using multiple criteria - maybe an OR function?

    Thank you!

+ 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. Need help using multiple criteria in second argument of CountIfs function
    By bclucas55 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-27-2014, 11:16 AM
  2. [SOLVED] Countifs arrays with multiple criteria and subtotal function
    By 5150 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 01:58 AM
  3. Replies: 1
    Last Post: 08-05-2013, 01:52 PM
  4. Replies: 4
    Last Post: 03-30-2013, 08:36 AM
  5. [SOLVED] Countifs function with multiple criteria in same column
    By sam99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 09:10 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