+ Reply to Thread
Results 1 to 3 of 3

Countifs with OR functions

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Herts
    MS-Off Ver
    Excel 2007
    Posts
    7

    Countifs with OR functions

    Hi,

    I've run into a problem using countifs.

    What i want the formula to do is look at 2 ranges and return a count but i want it to look for multiple values to count, not just one value.

    i have attached a very simplified sheet of what i want to do. In the purple area i want to have a count of all the category A's and all the Category B's per person. So using this example attached 'jo's' count will be 4 cat A and 1 Cat B. Mark's count would be 4 Cat A and 0 Cat B. Deans counts would be 3 Cat A and 0 Cat B and so on......

    Any help would be massively appreciated!

    Kind regards
    Richard

    PS Forgot to add that what I kind of want is to embed an OR in my COUNTIFS to say so it totals up the count if the value is equal to this OR this OR this etc etc - Hope that makes sense. Is this possible?
    Attached Files Attached Files
    Last edited by bellpiero; 03-17-2010 at 12:16 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using Countifs with OR fuctions?

    In E3:

    =SUMPRODUCT(--($B$1:$B$22=$D3),--(ISNUMBER(MATCH($A$1:$A$22,H$2:H$26,0))))

    copied to next column and down the table...

    Adjust ranges to suit...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Herts
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Using Countifs with OR fuctions?

    Genius! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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