values greater than and including

T

Teeny

I need to find how many values in a column are greater than and including 6
but less than 12, I have tried many variations on COUNTIF and the numbers
just dont look right.

Can anyone help?
 
P

Per Jessen

Hi

Both formulas will do it:

=SUMPRODUCT(--(A1:A10>=6),--(A1:A10<12))

=COUNTIF(A1:A10,">=6")-COUNTIF(A1:A10,">12")

Regards,
Per
 
A

Ashish Mathur

Hi,

You could try either of the following:

=sumproduct((range>=6)*(range<12)); or

=countif(range,">=6")-countif(range,"<12")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
T

Teethless mama

=countif(range,">=6")-countif(range,"<12")

this formula doesn't work. It give you a wrong value
 
T

Teethless mama

greater than and including 6 but less than 12
=COUNTIF(A1:A10,">=6")-COUNTIF(A1:A10,">12")

your formula doesn't work. It give you a wrong value

Try it like this:

=COUNTIF(A1:A10,">=6")-COUNTIF(A1:A10,">=12")
 
S

Shane Devenshire

Hi,

In 2007:
=COUNTIFS(A1:A15,">=6",A1:A15,"<12")

In 2003:
=SUMPRODUCT(--(A1:A15>=6),--(A1:A15<12))
 

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