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 Conditional Formula, counting one criteria in a range based on ano

Hi,

Try this

=SUMPRODUCT((A1:A24="Male")*(B1:B24="British"))

Mike

"sarahlbdarling" wrote:

I have two columns of data, one being gender and the other being nationality.
I want to count how many British males there are, I can get the formulas to
work. I have tried many many variations of counta, countif, countifs, if etc
and none work.....where am I going wrong!