COUNTIFS - Excel 07

  • Thread starter Thread starter Evan
  • Start date Start date
E

Evan

Hello,
Using this example set of data:
A B
John 1
Mary 6
Bill 7
John 5
Rob 10
Jim 2

How would a formula look that wants to count anything in column B greater
than 5, and anything in column A that is equal to either John, Mark, or Jim?
I know I could do 3 separate countifs and add them together, but my real
excel sheet is much more complicated than this. Just wondering if there is
some sort of "OR" function that can be used in this situation with countifs.

Thanks!
 
List the names to count for in a range of cells:

J1 = John
J2 = Mark
J3 = Jim

This will work:

=SUMPRODUCT(COUNTIFS(A2:A7,J1:J3,B2:B7,">5"))

But this is better:

=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,J1:J3,0))),--(B2:B7>5))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Need Countifs Formula Help 0
COUNTIF between dates and if value = "y" 8
countif 3
Nesting COUNTIF 3
Counting Cells with Multiple Range Criteria (Excel 2003) 7
Countif, index and match 2
Countif 3
Sorting and COUNTIF 6

Back
Top