View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Count number of items in one column that have a value in another?

Hi!

Try this:

=SUMPRODUCT(--(B1:B20="yes"),--(ISNUMBER(C1:C20)),--(C1:C20=0))

Biff

"onthefritz" wrote in message
...
I have a spreadsheet that I would like to count the number of occurrences
of
a particular value in one column that also have a particular value in
another.

For instance, I want the number of times the value in column B = Yes when
the value in column C = 0.

I've tried using COUNTIF and SUMIF, but they both give me the result of
the
two arguments added together as opposed to how many contain both values.

I would certainly appreciate any ideas.

Thanks.