Calculating data between two given parameters

G

Guest

If i have a range of A1:A300 and the range of numbers within those cells
could be anything from 1 to 50 how do i count cells that contain numbers
greater than 20 but less than 31?

Thanks
 
B

Bob Phillips

=COUNTIF(A1:A300,">20")-COUNTIF(A1:A300,">30")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
D

David Biddulph

Unless the numbers are contrained to being integers, it may be preferable to
use =COUNTIF(A1:A300,">20")-COUNTIF(A1:A300,">=31")
 

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