Excel 2010 - Pivot Table Calc Field

stapuff

Well-known Member
Joined
Feb 19, 2004
Messages
1,126
I am using Excel 2010.


Column Label = "Year_" which has 2012 and 20122
Values = "Sum of Gallons"

I am trying to add a calculated field that subtracts Year_ 2012 Sum of Gallons - Year_ 2011 Sum of Gallons

Any thoughts on proper way to write this

Thanks,

Stapuff
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

Not sure if this would be what you need.

If:
HTML:
year	gall
2011	100
2011	200
2012	300
2012	400

then pivot:
HTML:
Sum of gall		
	2011	2012	Formula1	
Total  	300    	700    	400

Formula 1 being a calculated item such as 2012 minus 2011.
 
Upvote 0

Forum statistics

Threads
1,203,734
Messages
6,057,059
Members
444,902
Latest member
ExerciseInFutility

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