# "Counting" data by number of occurrences.

#### mikewvdos

##### New Member
I have a list of data (about 2000 data points), and I need to "count" how many times each singular data point occurs within a range. For example, lets say I only have 4 data points as follows:

A=2%
B=6%
C=2%
D=4%

In this instance, I want excel to tell me that there are 2 occurences of a value between 0% and 2%, one occurence between 2.1% and 4%, and one occurence between 4.1% and 6%.

Clear as mud ? Thanks for your help. Yes, I know this is probably a very simple excel question, but I guess thats why I'm here - because I need help with the very simple.

mike in Calgary

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

##### MrExcel MVP
I have a list of data (about 2000 data points), and I need to "count" how many times each singular data point occurs within a range. For example, lets say I only have 4 data points as follows:

A=2%
B=6%
C=2%
D=4%

In this instance, I want excel to tell me that there are 2 occurences of a value between 0% and 2%, one occurence between 2.1% and 4%, and one occurence between 4.1% and 6%.

Clear as mud ? Thanks for your help. Yes, I know this is probably a very simple excel question, but I guess thats why I'm here - because I need help with the very simple.

mike in Calgary

E1: 0%
F1: 2.1%
G1: 4.1%

E2, copied across to G2:

=COUNTIF(\$A\$1:\$D\$1,">="&E1)-COUNTIF(\$A\$1:\$D\$1,">"&IF(F1="",6%,F1))

#### Gates Is Antichrist

##### Well-known Member
Here's a semi-long way to do it, though someone may have a tighter solution.
foo.xls
ABCDEFG
1countcumulative
20
32%0%to2%22
46%2.1%to4%13
52%4.1%to6%14
64%6.1%to8%04
78.1%to10%04
Sheet3

##### MrExcel MVP
or use a pivot table:

select the range, put the data in the row & count of data in the data area. then, right click the row, select group & outline, enter you min & max for the range & the interval & you're done - quicker to do than explain.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,681
Messages
5,838,780
Members
430,568
Latest member
bortey

### 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.

### Which adblocker are you using?

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

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