ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting the number of values in a list between two specified valu (https://www.excelbanter.com/excel-worksheet-functions/57270-counting-number-values-list-between-two-specified-valu.html)

andyuae

Counting the number of values in a list between two specified valu
 
I have 30 entries in a list which are the heights of students in my class in
cm. I want to plot a bar chart of this data so the spreadsheet is arranged to
show the data as numbers of students with heights between certain values eg 3
students between 131 and 135 cm, 4 between 136 and 140 cm, 2 between 141 and
145 cm etc. Which formula do I use to get excel to automatically calculate
the numbers iof students between these values? I have tried combinations of
SUM and IF to no avail. Can anyone help.
Thanks.

Bob Phillips

Counting the number of values in a list between two specified valu
 
=SUMPRODUCT(--(rng=13),--(rng(<=135)

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"andyuae" wrote in message
...
I have 30 entries in a list which are the heights of students in my class

in
cm. I want to plot a bar chart of this data so the spreadsheet is arranged

to
show the data as numbers of students with heights between certain values

eg 3
students between 131 and 135 cm, 4 between 136 and 140 cm, 2 between 141

and
145 cm etc. Which formula do I use to get excel to automatically

calculate
the numbers iof students between these values? I have tried combinations

of
SUM and IF to no avail. Can anyone help.
Thanks.




Bernard Liengme

Counting the number of values in a list between two specified valu
 
Also, have at look at FREQUENCY in Help
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"andyuae" wrote in message
...
I have 30 entries in a list which are the heights of students in my class
in
cm. I want to plot a bar chart of this data so the spreadsheet is arranged
to
show the data as numbers of students with heights between certain values
eg 3
students between 131 and 135 cm, 4 between 136 and 140 cm, 2 between 141
and
145 cm etc. Which formula do I use to get excel to automatically
calculate
the numbers iof students between these values? I have tried combinations
of
SUM and IF to no avail. Can anyone help.
Thanks.





All times are GMT +1. The time now is 10:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com