Multiple Criteria & Count if Equals 0


S

slf

Need help with a formula to find criteria in one column then count the number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated
 
Ad

Advertisements

J

Jacob Skaria

Try
=SUMPRODUCT((A1:A10="Smith")*(B1:B10=0)*(B1:B10<>""))

If this post helps click Yes
 
S

slf

Mike,
Thank you -
I had the "Sumproduct" but was unable to finish it. The * never occurred to
me.
 
Ad

Advertisements

A

Ashish Mathur

Hi,

Since you are using Excel 2007, you may also use this formula

=COUNTIFS(a5:a10,a12,b5:b10,0)

A12 has Smith

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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