View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default How do I count cells that matches multiple criteria in Excel?

=SUMPRODUCT((A1:A1000=1)*(C1:C1000=5))

SUMPRODUCT has to have a range defined rther than whole columns.

"MEAD5432" wrote:

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.