Count Formula

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I will like to create a formula that will look in column a
and if the field in column b matches it will give me a
count. so for example if in a1 is blue and b1 is yellow
than give me a count of 1 but they both must match blue
and yellow?

Thanks in advance for you assistance

Dave
 
Dave

not really sure what you're after but here's two ideas for you

=IF(AND(a1="blue",b1="yellow"),1,0)
or
=SUMPRODUCT(((A1:A100)="blue")*((B1:B100)="yellow"))


Cheers
JulieD
 
Thanks Julied!


-----Original Message-----
Dave

not really sure what you're after but here's two ideas for you

=IF(AND(a1="blue",b1="yellow"),1,0)
or
=SUMPRODUCT(((A1:A100)="blue")*((B1:B100)="yellow"))


Cheers
JulieD




.
 

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

Similar Threads


Back
Top