countif function

E

etan

Hey there folks. I am wondering how to state the criteria in the COUNTIF
function to find values higher than one number and lower than another. Thank
you.
 
J

JE McGimpsey

One way:

=SUMPRODUCT(--(A1:A10>2),--(A1:A10<10))

another

=COUNTIF(A1:A10>2) - COUNTIF(A1:A10<=10)
 
J

JE McGimpsey

No,

=COUNTIF(A1:A10,">2") - COUNTIF(A1:A10,">=10")

is what I meant. But yours was closer than mine.
 
A

Aladin Akyurek

Funny, since I started to use Thunderbird as mail-client and
news-reader, which is just great, I'm constantly missing a letter or two
in my typing. A great excuse no? <g>

I actually wanted to write about the CountIf idiom that it's faster than
the equivalent SumProduct formula. That is, whenever a numerical
in-between condition is involved, it wouldn't a bad idea to invoke this
CountIf idiom. And SumIf for summing...
 

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