"Counting" data by number of occurrences.

mikewvdos

New Member
Joined
Aug 29, 2007
Messages
2
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.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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))
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
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.
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top