"Between" in excel - coding for number ranges

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
I've got a set of numbers from 0 about 20,000, most less than 500. i want a chart that displays the number of items in the range 0-99, 100-199 etc. Is there a way of doing with without having to code all the alternatives in an elaboate if statment & what's the excel formula for 'between ?!?
As ever, all hlpgratefully received.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You could try using Tools->Data Analysis and select Histogram.
You will need a range listing the spread (Bin range) i.e: 100 200 300 etc
Enter the range you want to summarise and the bin range and it will output the count for the bin range set

Russell
 
Upvote 0
Lets A1:A7 house the following sample:

{"Nums";
21;
45;
73;
320;
202;
212}

Enter in B from B2 on the bins [0-99,100-199,etc]:

{"Bins";
99;
199;
299;
399}

In C1 enter: Freqs

In C2 enter and copy down as far as needed:

=INDEX(FREQUENCY($A$2:$A$7,$B$2:$B$5),ROW()-1)

You should get in the results area:

{"Freqs";
3;
0;
2;
1}

Note. COUNTIF can also be used to determine freqs, but the above is, I'd say, good enough.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top