Formula to group age ranges?

moonietoons

Board Regular
Joined
Apr 11, 2005
Messages
92
I'm doing a report that needs to group employees' ages into the following ranges:

Under 20
20-29
30-39
40-49
50-59
60-69
Over 70

All of my ages are in column B. I've tried doing a subtotal of each age, but can't figure out how to get subtotals by age GROUP. Anyone have advice?

Thanks so much.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Why not use a pivot table?

It should give you those groupings.
 
Upvote 0
The reason is...

I have no idea what a Pivot Table is. I'm not NEARLY as knowledgeable as the rest of you; I lurk around hoping to learn by osmosis.
 
Upvote 0
Well try going to Data>Pivot Table Report... and follow the wizard.

Add the age as a row item.

Can you post an example of your data and required result, perhaps using Colo's HTML Maker?
 
Upvote 0
I tried the wizard, but...

It's not a very good one. I can't download the add-in (I'm at work at they FREAK about that sort of thing.) This is what I have:

A B C
Age Division Job Class

18 Division Job Class
37 Numbers Numbers
45
62
22
22
36


What I need is:

A B C
Age Division Job Class

18
18
18
19
19
Total under 20 = 5

22
25
25
26
25
28
28
Total 20-29 = 7

(And so on.)

Does that make sense?

Thanks,
 
Upvote 0
So you want to count how many people in an age range are in a division/class/job?

Try this.

Select the range with your data and goto Data>PivotTable...

Add Age as a row item and (sum(or count) of) division, class and job as data items.

Once you have finished the pivot table should display the data for each individual group.

To group the ages right click on the age field and select Group and Outline>Group...

That should give you various options on how to group the ages.

Give it a try and play about with it till you get the required result.
 
Upvote 0

Forum statistics

Threads
1,221,467
Messages
6,160,018
Members
451,611
Latest member
PattiButche

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