countif

C

Cryssie

Hi

I am wanting to count the number of cells in a range that
contain a value greater than X AND less than or equal to Y.
 
D

Dan E

=COUNTIF(A1:A100,">X")-COUNTIF(A1:A100,">Y")

Counts the number greater than X then subtracts the number
greater than Y leaving X<Val<=Y

OR

=SUMPRODUCT((A1:A100>X)*(A1:A100<=Y))

Dan E
 

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