Count IF

K

KC

I need a formula for the following:

If Col E on Sheet1 = "Canada" (B5), than count if Col O on Sheet1 if between
..75 & .999

Someone had tried helping earlier with a similar formula, but it didn't work.
 
S

Sean Timmons

=SUMPRODUCT((Sheet1!E2:E5000="Canada")*(Sheet1!O2:O5000>=.75)*(Sheet1!O2:O5000<=.999))

Presuming you want .75 and .999 included.
 
K

KC

That gave me a #DIV/0! error. I'm trying to count the insances a cell in
that range is between .75 and .999.
 
D

Dave Peterson

Did you use this formula or did you use this formula as a divisor in a different
formula?

If you used this formula as-is, then you have a #div/0 error in one of those
ranges (E2:e5000 or o2:blush:5000). (Remember to look in hidden rows, too!)

I'd clean up those errors and continue to use Sean's suggestion.

If you used Sean's formula as a divisor, then you'll want to test to see if it's
0 before you use it:

=if(sean'sformula=0,"Nothing found",(someotherformula)/sean'sformula))
 

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