Pivot Tables - Subtracting Subtotal columns

KOsmond

New Member
Joined
Mar 3, 2015
Messages
1
I have an issue with a pivot table whereby I need to use the subtotal columns in a calculation. A sample of the data is attached

Basically calculation needs to be 13NC Total + 13NP Total - 4OC Total -4OP Total.

The difference between in calculated fields doesnt work.

Any suggestions much appreciated.

Sum of AnnualColumn Labels
13NC13NC Total13NP13NP Total4OC4OC Total4OP4OP TotalGrand Total
Row Labels451413 (e) i13 (g)13 (h)13 (k)I A B13 (m)13.(q)ATO13 (a) 13 (e) i13 (f)13 (g)13 (n)13 (o) (ii) b13 (s)400240054006400740094203420542064209421742184221422242244225422642394241424242474247.14504453845394716473547414742474547484900400840124013401440154018401940204021402242014213422042234225422742414242424645064509451345324537471447164718473447354736474347464901
1000196.2057.20153.401,232.401,232.401,385.80
1000424.8024.80988.00813.801,205.1096.2057.203,160.30122.48122.481,440.31790.401,201.413,432.116,739.69
10006623.06623.06988.0096.2057.201,141.40623.0668.80691.861,440.311,440.313,896.63
10008988.0096.2057.201,141.401,232.401,440.312,672.713,814.11
10010988.0096.2057.201,141.401,440.311,440.312,581.71
10012988.001,205.1096.2057.202,346.5024.6424.641,089.761,676.991,040.001,976.005,782.768,153.90
1001496.2057.20153.402,464.802,464.802,618.20
10015700.00700.00988.0096.2057.201,141.40741.58741.581,440.311,440.314,023.29

<colgroup><col style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98"> <col style="width: 86pt; mso-width-source: userset; mso-width-alt: 4169;" width="114"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" span="2" width="64"> <col style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 55pt; mso-width-source: userset; mso-width-alt: 2669;" width="73"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" span="2" width="64"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;" width="74"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 55pt; mso-width-source: userset; mso-width-alt: 2669;" width="73"> <col style="width: 34pt; mso-width-source: userset; mso-width-alt: 1645;" width="45"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" span="3" width="46"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 26pt; mso-width-source: userset; mso-width-alt: 1280;" width="35"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" span="2" width="46"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" width="39"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" width="39"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" span="2" width="46"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 37pt; mso-width-source: userset; mso-width-alt: 1792;" width="49"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" span="2" width="39"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="3" width="57"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" width="39"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="5" width="57"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" span="4" width="64"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="2" width="57"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" span="2" width="64"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" width="39"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="2" width="57"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="2" width="57"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" width="64"> <col style="width: 29pt; mso-width-source: userset; mso-width-alt: 1426;" width="39"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" span="4" width="57"> <col style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;" width="46"> <col style="width: 48pt; mso-width-source: userset; mso-width-alt: 2340;" span="2" width="64"> <col style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;" width="57"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <col style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;" width="82"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;" width="71"> <tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,479
Messages
6,125,041
Members
449,206
Latest member
Healthydogs

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