Referencing Pivot Table Grand Totals

JimRoy

New Member
Joined
Jul 17, 2015
Messages
19
Office Version
  1. 365
Platform
  1. Windows
I have a dynamic pivot table that will shrink and grow depending on the data. On average there are 1000 rows of data. I wish to display the Grand Totals at the top of the report.

I am unable to use the trick of creating an additional field within the table with the same data for all rows and then using it to display sub totals at the top because I have other data that I don't want displayed using the "Show Sub Totals" option.

Is there any way to use the GetPivotData reference to the Grand Totals when the fields constantly move? Is there a way I could build a macro to find the Grand Totals Columns and then copy and past them to the top when the report is refreshed? I have had no success yet.

Any assistance would be appreciated.
 

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
in the cell you want to total press = and then click on the cell with the total in the pivot table. if this gives you a cell reference like A1 instead GETPIVOTDATA(), with your pivot table selected, go to the options tab, and on the left under PivotTable Name there should be another options tab. click the little arrow and make sure Generate GetPivotData is checked and repeat the first step.

hope that works, i'm not sure if it's different in later versions of excel. i'm using 2007 myself
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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