View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default count number of rows with 2 matching text cells

Maybe

=SUMPRODUCT((Sheet1!A1:A30="xx")*(Sheet1!B1:B30="y y"))

Mike

"smcmoran" wrote:

I have a data sheet with data listing users and a product group. I need to
count the number of occurances where the user and group match. so on the
second sheet i need to fill cells with the count of "IF !A:A = "X" and !B:B =
"Y"". I have been trying countif and sumproduct with no luck. I can get the
sum of both individual matches but not when the combination matches.

Any ideas?

Thanks
Scott