Assistance: Count if numbers are within a range

Simmeon

New Member
Joined
Feb 5, 2016
Messages
4
hNwqxpO.png


Hi everyone,

I would be grateful for your help.

What I'm trying to accomplish:


I want to count the numbers from A:A

If the number are between 1 and 6
If the number are between 7 and 12
If the number are between 13 and 18
If the number are between 19 and 24
If the number are between 25 and 30
If the number are between 31 and 66

Example:
The Yellow Column for "25 to 30" would be 4 because in A:A we have the numbers 27,25,26,27
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to Mr Excel

Maybe this

C2 copied across
=COUNTIFS($A:$A,">="&LEFT(C1,2),$A:$A,"<="&RIGHT(C1,2))

Hope this helps

M.
 
Upvote 0
an alternative


Excel 2012
ABCDEFGH
13661218243036
218111243
327
412
525
634
731
826
924
1023
1127
125
Sheet5
Cell Formulas
RangeFormula
C2=INDEX(FREQUENCY($A$1:$A$12,$C$1:$H$1),COLUMN(C1)-COLUMN($C$1)+1)
 
Upvote 0
Thank you AlanY so much for your solution.
I'll save this as well.

an alternative

Excel 2012
ABCDEFGH
13661218243036
218111243
327
412
525
634
731
826
924
1023
1127
125

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
C2=INDEX(FREQUENCY($A$1:$A$12,$C$1:$H$1),COLUMN(C1)-COLUMN($C$1)+1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,681
Messages
6,126,194
Members
449,298
Latest member
Jest

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