How do I count cells that matches multiple criteria in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a worksheet with product code in column A, Salesperson in column B and
Sales Location in column C. I want to count the number of rows that fit my
criteria; i.e. I want to count the number of rows that are product code 1 AND
sales location 5.
 
=SUMPRODUCT((A1:A1000=1)*(C1:C1000=5))

SUMPRODUCT has to have a range defined rther than whole columns.
 
=SUMPRODUCT(--(A2:A20=1),--(B2:B20=5))



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Back
Top