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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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