Excel Pivot calculated field question

GC102014

New Member
Joined
Dec 4, 2014
Messages
13
I have table that has the same account names but for different years (sample below). I want to create a pivot item field that calculates the difference between the years for the same account name
Account NameYearAmount
Account 1201415000
Account 1201520000
Account 2201430000
Account 2201560000
So for Account 1 the difference is 5K and coount 2 the difference is 30K. How do i get the difference for the two fields when the amounts belong to the same column and can only be differentiated by year?
Sum of AmountColumn Labels
Row Labels20142015 Grand Total
Account 1150002000035000
Account 2300006000090000
Grand Total4500080000125000
The output I would like to show is below:
I need the change to be part of the pivot table because I want to then get the top 40 base on change column.
Sum of AmountColumn Labels
Account20142015Change
Account 2300006000030000
Account 115000200005000
Grand Total450008000035000
Please help!

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

is it possible to pivot your original data into this format

Account Name20142015

<tbody>
</tbody>

Copy and paste this format into a new sheet and we can calculate the change from there by adding a column to the right of "2015"

Regards,
Wynn
 
Upvote 0
I can definitely just add an extra column and just deduct 2015 from the 2015 total but the problem is I need to show top 40 result based on the changed field. Since it is not part of the pivot table it won't sort by the change field
 
Upvote 0
I can definitely just add an extra column and just deduct 2015 from the 2015 total but the problem is I need to show top 40 result based on the changed field. Since it is not part of the pivot table it won't sort by the change field

Hi,

after adding an extra column and getting the change field, format the range into a table and use the "Number Filter" function in the table , click on "Top 10" and filter it to top 40 items

Regards,
Wynn
 
Upvote 0
Hi Wynn,

I've highlighted the pivot table and the "change" column that I've created then did a control L. It did not convert it into table. Any tip on how to do this? So close! Thank You!
 
Upvote 0
Hi GC,

Basically these are the columns you require in a sheet (not pivot table)

Account Name 2014 2015 Change

then change this range into a table and use the number filter

Regards,
Wynn
 
Upvote 0
gotcha. thanks for the tip. it's a good workaround. i just wished though that I can do this via pivot so the users can click on any part pf the pivot and see the details.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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