Count if

B

BC

I have numbers in A1:A100, lets say 1 - 100. I also have a number in C11 and
a number in E11. How do I get a count of how many numbers in A1:A100 fall
between C11 and E11?

Thanks
 
R

Rick Rothstein

Try this formula if "between" meant not to count the values in C11 and
E11...

=SUMPRODUCT((A1:A100>C11)*(A1:A100<E11))

Try this formula if "between" meant to include them...

=SUMPRODUCT((A1:A100>=C11)*(A1:A100<=E11))
 
B

BC

Thanks Rick, just what I needed

Rick Rothstein said:
Try this formula if "between" meant not to count the values in C11 and
E11...

=SUMPRODUCT((A1:A100>C11)*(A1:A100<E11))

Try this formula if "between" meant to include them...

=SUMPRODUCT((A1:A100>=C11)*(A1:A100<=E11))
 

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