Pie chart based off pivot table

nyconfidential

New Member
Joined
Jul 22, 2015
Messages
49
Office Version
  1. 365
  2. 2016
Hi there - I'm trying to create a pie chart that will only have two sections: the sum of the top 5 values, and the sum of all of the other values in the column. For example:

Let's say I have a list of 15 cars - one part of the pie chart will be the sum of the 5 most expensive cars. The other part of the pie chart will sum up the price of the other 10 cars. Is there a simple way to do this? I can always grab the sum of the top 5 via a pivot table - but the number of the other values will vary, I could have 10, 20 or 30 other cars. Thanks for your help.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

There could be a few things going on here, assuming your Pivot isn't creating a summary then:

What i'd do is go to the pivot source data, and add a rank column. Something like:

=IF(RANK(A1,$A$1:$A$6)<=5,"TOP 5","OTHER")

Where A1 is the value you want to rank, and $A$1:$A$6 are all the values.

Then just pivot it, with Rank column in the rows and values in the value section, the Pie of that should show what you want.



If this isn't down the right path, then please share an example of your source data. And what your Pivot looks like.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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