How can I count values greater than and less than certain values?

G

Guest

How can I count occurances in a range of values. Eg If I have a class of
students ranging from 150cm to 190cm height, what is the formula in Excel to
count how many people are between 170 and 175 cm. How can I count values
greater than and less than in one operation?
 
G

Guest

Hi,

Assuming the height range is in C1:C9.

Now array enter (Ctrl+Shift+Enter) the following formula in cell C11

=COUNT(IF((C5:C9>2)*(C5:C9<5),C5:C9))

Regards,
 
A

Aladin Akyurek

=COUNTIF(AgeRange,">="&170)-COUNTIF(Range,">"&175)

for an inclusive count.

=COUNTIF(AgeRange,">"&170)-COUNTIF(Range,">="&175)

for an exclusive count.
 
T

Trevor Shuttleworth

And another option for the collection ...

=SUMPRODUCT((A1:A500>=170)*(A1:A500<=175))

Regards

Trevor
 

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