View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
pinmaster pinmaster is offline
external usenet poster
 
Posts: 347
Default countif formula accross two columns

Hi,

Perfect for a sumproduct function:

=SUMPRODUCT((A1:A100)*(B1:B100))

Cheers!
Jean-Guy

"Afsha" wrote:

I have two coulumns with values. i want to count number of records which are
more than 0 in both columns. E.g:
Column A Coulumn B
0 0
5 6
0 1
3 2

Therefore I want the answer to come back as 2 as two rows have both columns
with a value of more than 0.

thanks
Afsha