function contif

I

Isaías.

I´ve a list of numbers and want to use the count how many of this is within
the ranges
 
M

Mike

Checks the range A2 - A10 for numbers >=5 and <=20.
=COUNTIF(A2:A10,">=5")-COUNTIF(A2:A10,">20")

Mike
 
M

Martin Fishlock

Hi:

Another way to do it is sumproduct:

=sumproduct(--(A2:A10>=5),--(A2:A10<20))
 

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