PivotTable - Uneven Grouping

sallymac

New Member
Joined
Aug 30, 2009
Messages
31
My PivotTable has a field "Age" (of employees). I need the field Grouped, but not by even intervals as Excel allows.
Eg < 15
15-24
25-39
40-54
55-64
>= 65
Is it possible?

Thanks for your help.
Sally
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You have to do the banding in the source data for that, unless you want to manually group each entry. I prefer to use a lookup table and formula in the source data as it's much easier if you need to alter the groupings.
 
Upvote 0
Hi,

You'd need a new row in your raw data to bucket the ages, something like this would give them there attributes...

=LOOKUP(A1,{0,"0-5y";6,"6-10y";11,"11-20y";21,"21+y"})

Then refresh the data picking up the buckets and put the field in the Columns part of the table.

Hope this helps.
 
Upvote 0
Create an additional column holding the age group.
 
Upvote 0
Thanks very much everyone - I feared as much.
As I am creating a template to come straight from the HRMIS, I was hoping to avoid having to do any manipulation. Possibly I can create a calculated field in the pivot template.
Thanks again
Sally
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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