multiple countif question

U

underhill

I have a sheet with 100 rows. cell A contains either 1 or 2. Cell
contains either 1 or 0. I want to count all the 0s in cell B wher
the value in A is 1. This is essentially a multicriteria counti
problem.

Any ideas.

Thanks again for all your help
 
A

acw

H

Try the sumproduct function

=SUMPRODUCT(--(A1:A100=1),--(B1:B100=0)

Ton

----- underhill > wrote: ----

I have a sheet with 100 rows. cell A contains either 1 or 2. Cell
contains either 1 or 0. I want to count all the 0s in cell B wher
the value in A is 1. This is essentially a multicriteria counti
problem.

Any ideas.

Thanks again for all your help
 
U

underhill

I had no idea that a sumproduct could be used in this way so thanks for
all your help.
I cant say that I understand how it works, but it works!

:)
 

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