COUNTIF >=8 AND < 9

J

Jenni

I have a worksheet that contains employees in one column
an wages in another. I would like to count how many
people make Greater than or Equal to 8, but less than 9
dollars an hour. and 9 to 10. and 11 to 12. I think I can
use COUNTIF, but I'm not sure how to say >=8 AND <9 Can
you help?
 
A

Anson

Hi Jenni

Try use the Array Sum function below:
Sum((A1:A10>=8)*(A1:A10<=9))

instead of hitting <Enter>, hit <Ctrl> + <Shift> + <Enter>
 
D

Domenic

Hi Jenni,

Assuming your data is in Column B, try:

=SUMPRODUCT((B1:B10>=8)*(B1:B10<9))

Hope this helps!
 
B

Bob Umlas Excel MVP

=SUMPRODUCT((A1:A100>=8)*(A1:A100<9))
and
=SUMPRODUCT((A1:A100>=9)*(A1:A100<10))
etc.
 
J

Juan Sanchez

If you are only countig ranges of 1 integer maybe you can
use:

=SUMPRODUCT(--(INT(A1:A30)=8))

Change 8 for 9 and then 10 and so on...

Cheers
Juan
 
D

Don Guillett

Neat, then this might even be easier to copy down

=SUMPRODUCT(--(INT(F1:F30)=ROW(A8)))
 
J

Jenni

Thank you! That works great!
-----Original Message-----
Hi Jenni

Try use the Array Sum function below:
Sum((A1:A10>=8)*(A1:A10<=9))

instead of hitting <Enter>, hit <Ctrl> + <Shift> +
 

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