Pivottable -> 'Others'

Bobthebuilder

Board Regular
Joined
May 2, 2002
Messages
76
Using pivottables, is there a way of showing the top 15 of something and then have the reaminder tallied up under and 'Other' row?

Also, using the Autoshow method, is there a way of preserving the total for the original p.table? (Using autoshow, shows a grand total for the number of entries selected under autoshow!)

Thanks a bunch
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Suppose that A1:B5 contains...

{"Field1","Field2"
;"Apples",1
;"Bananas",9
;"Grapes",6
;"Oranges",4}

...and you want a PivotTable to Sum 'Field2' based on the top 2 items of Field1 and include an "Others" category. Just add a new dimension, 'Field3', to your data set by entering the formula...

=IF(OR(B2=LARGE($B$2:$B$5,{1,2})),A2,"Others")

...into C2 and copying down to C5. Now your data set looks like...

{"Field1","Field2","Field3"
;"Apples",1,"Others"
;"Bananas",9,"Bananas"
;"Grapes",6,"Grapes"
;"Oranges",4,"Others"}

You can now create a PivotTable with Field3 in your ROW area and 'Sum of Field2' in the DATA area.
 
Upvote 0

Forum statistics

Threads
1,215,156
Messages
6,123,339
Members
449,098
Latest member
thnirmitha

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