+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS with OR instead of AND

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    NZ
    MS-Off Ver
    Excel 2007
    Posts
    1

    COUNTIFS with OR instead of AND

    The COUNTIFS function seems to do an 'AND' between each clause.
    I am looking for something similar which does an 'OR' between the clauses instead.

    Any ideas would be much appreciated...
    Thanks
    Jay

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: COUNTIFS with OR instead of AND

    =sum(countifs(myrange, {1,2,3}))
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: COUNTIFS with OR instead of AND

    Note that you will only be able to do "OR" conditions twice within the COUNTIFS. The first array constant is horizontal while the second array constant is vertical.

    =SUM(COUNTIFS(myrange1, {1,2,3} , myrange2, {1;2;3} ))
    Hope that helps,

    Colin

    RAD Excel Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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