Group Pivot Table based on Member Number

dawn922

New Member
Joined
Apr 6, 2010
Messages
3
Hello - My Excel 2007 pivot table is mostly established, but I'm having problems with grouping of member types based on a member number. It is the last character in a member number which allows me to know if a person is a member, or a spouse or child of that member.

I need to group spouse as Spouse, and everyone else as NonSpouse for demographic purposes.

My pivot table rows include MemNum, age, gender, and membership type.

Under MemNum, I have successfully grouped everyone with a member number ending in 0 as NonSpouse, and all member numbers ending in 1 as Spouse. But I then need to group numbers ending in 2, 3, 4, etc. as NonSpouse too. That's where I'm stuck in this inherited project, as I cannot seem to reuse NonSpouse for the other groups.

Thanks in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Nothing like figuring it out shortly after posting...seems like I can select multiple rows in my report filter and include all but numbers ending in 1 in my NonSpouse group. Maybe this will help someone else.
 
Upvote 0
That is a good solution.

For fleibility, I insert a column in the "Data" and use Vlookup in that column


In the "data, as your your example, you are concerned with Member, Spouse and Other

Range Name XXX
Column A Column B Original Data
0 Member Member
1 Spouse Spouse
2 Other (Otherwise 2=Son)
3 Other (Otherwise 3 = Daughter)
4 Other (Parent)
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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