Pivot Table - Calculated Column

Clayton_

New Member
Joined
Aug 2, 2016
Messages
2
Good morning,

I'm using Excel 2010 / Windows 7 Professional.

I have a table that I would like to summarize with a pivot table. I'd like the pivot to have sections for the 3 different types below and then show the detail for the various descriptions and calculate a "net income". That is straightforward and simple to do.

What I cannot figure out (and it may not be possible) is how I could add a column to the pivot table to show each row as a percentage of the "total income". So using the data below each row would be divided by the total income of $140,000.

TypeDescription Amount
IncomeSalary 100,000.00
IncomeBonus 35,000.00
IncomeConsulting 5,000.00
ExpenseMortgage (18,000.00)
ExpenseGeneral Living (30,000.00)
ExpenseTaxes (32,000.00)
Savings401k (16,000.00)
SavingsRoth (5,500.00)

<tbody>
</tbody>



This is what I am trying to achieve. The "Sum of Amount" column is easy, but the Percent of Income column is what I cannot figure out.



Row LabelsSum of AmountPercent of Income
Income140,000100.00%
Bonus​
35,00025.00%
Consulting​
5,0003.57%
Salary​
100,00071.43%
Expense-80,000-57.14%
General Living​
-30,000-21.43%
Mortgage​
-18,000-12.86%
Taxes​
-32,000-22.86%
Savings-21,500-15.36%
401k​
-16,000-11.43%
Roth​
-5,500-3.93%
Net Income38,50027.50%

<tbody>
</tbody>



Very much appreciate any help provided.

Thank you,
Clayton_
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
The problem is that excel has no way of knowing that your income is 100% of all the numbers, especially since adding it all up doesn't get you that number (excel would add all the Income lines but also the Expense and Savings lines) so it would end up at 38.5K total amount, i.e. 100%.

To counteract this, you need to add a formula in your data table.

With your example data as above, add another column with this formula:

=C2/SUMIF($A$2:$A$9,"Income",$C$2:$C$9)

This will give you the desired % in the table. To get these to the pivot, simply add this new column into the Values field of the pivot and format it as %.
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,285
Members
449,218
Latest member
Excel Master

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