Comparing the values in two cells, then counting how many differ

C

cgm02

Any ideas on how I might compare two columns based on a conditional formula,
then count the number of occurences?
Col 1 - 0
Col 2 - 6
Number of rows in worksheet: 4000+

I'd like to be able to conditionally account for any value in col 1 that is
0 and has a positive number in col 2 (I don't need to report the number in
col 2). I'd then like to have a count for the number of times this condition
occured.

Thanks for any help!
 
T

T. Valko

Assuming there are no empty cells in column 1 and no text entries in column
2.

=SUMPRODUCT(--(A1:A4000=0),--(B1:B4000>0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top