Greater and less than

S

SUMSUE

I've typed in this formula to count the number of items that are within the
range that is more than 30 but less than 61 looking at one column with
different values,
=COUNTIF(N2:N8000,"<31>61")
I've done one for less than 31 and it works but can't add the second
criteria. It should return a value of 98 but I keep getting 0.

Where am I going wrong?
Thanks in advance
 
B

bpeltzer

You could just count all those greater than 30 and then subtract the number
greater than or equal to 61. What's left are those in the range (30,61)
=countif(n2:n8000,">30")-countif(n2:n8000,">=61")
 
P

PCLIVE

Use SUMPRODUCT:

=SUMPRODUCT(--(N2:N8000<31),--(N2:N8000>61))

Does that help?
Regards,
Paul
 

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