ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Syntax for referencing totals of grouped data in a pivottable (https://www.excelbanter.com/excel-worksheet-functions/51828-syntax-referencing-totals-grouped-data-pivottable.html)

mbpcon

Syntax for referencing totals of grouped data in a pivottable
 

I have a pivottable like the one shown beneath

Sum of Amount Account2 Account
G1 G1 Sum G2 G2 Sum G3 G3 Sum
Function A B AA BB
Marketing 10 10
Sales 10 40 50 200 200 1000 1000

I want to reference the grouped totals (G1 Sum, G2 Sum, G3 Sum) but I don't
seem to get the correct syntax for GETPIVOTDATA(syntax).

Can anyone help me?





Debra Dalgleish

Syntax for referencing totals of grouped data in a pivottable
 
If you're trying to get the totals for those columns, you should display
the Grand Totals for Columns. The arguments for GetPivotData will vary,
depending on the version of Excel that you're using.

mbpcon wrote:
I have a pivottable like the one shown beneath

Sum of Amount Account2 Account
G1 G1 Sum G2 G2 Sum G3 G3 Sum
Function A B AA BB
Marketing 10 10
Sales 10 40 50 200 200 1000 1000

I want to reference the grouped totals (G1 Sum, G2 Sum, G3 Sum) but I don't
seem to get the correct syntax for GETPIVOTDATA(syntax).

Can anyone help me?






--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com