Calculated Field Pivot Table

Excel1991

Board Regular
Joined
Aug 1, 2018
Messages
58
Hello All,

I am trying to create a calculated field in a pivot table so that i can find the variance between the current years beginning account balance and the prior years ending account balance.

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1999[/TD]
[TD]1999[/TD]
[TD]2000[/TD]
[TD]1999-2000[/TD]
[TD]2000[/TD]
[TD]2001[/TD]
[TD]2000-2001[/TD]
[TD]001[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Beginning Balance[/TD]
[TD]Ending Balance[/TD]
[TD]Beginning Balance[/TD]
[TD]VARIANCE[/TD]
[TD]Ending Balance[/TD]
[TD]Beginning Balance[/TD]
[TD]VARIANCE[/TD]
[TD]Ending Balance[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD]2000[/TD]
[TD]=D1-C1[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G1-F1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD]=D2-C2[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G2-F2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]500[/TD]
[TD]800[/TD]
[TD]=D3-C3[/TD]
[TD][/TD]
[TD][/TD]
[TD]=G3-F3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I do not know how to have to calculate the field so that I can subtract the previous years ending balance from the current years starting balance. Theoretically you would think that whatever you left off with last year SHOULD be your starting balance in the current year; however, that is not that case so I want to illustrate the variance for each line item.

I know I could copy and paste and do this manually, but I would like it in a pivot so that I can include a slicer-by year. This way i can sort the pivot from largest variance to smallest variance and just cycle through the years to get a feel for which line items are causing the variance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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