Discussion Locked

GETPIVOTDATA doesn't get column totals..

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an Excel 2000 pivot table, that displays column and row totals. I can use the getpivotdata function to get the row totals (i.e. getpivotdata (PVTable1,"March Johnson"). However when I use the same construct to get to the column total, the getpivotdata function returns "N/A" What am I doing wrong?

7 replies

by officewiz

Microsoft's help for Excel says:
"Formulas cannot refer to totals, such as Meat Total, Seafood Total, and Grand Total in the example."
(all the above 'totals' refer to column totals generated by the pivot).

You are able to refer to row totals because the total are not actually 'calculated' by the pivot but it is summed up from the row totals already available in your original table (from which you created the pivot). But in the case of column totals they are 'calculated' by the pivot and hence it cannot be referred to in "getpivotdata".

by officewiz

Microsoft's help for Excel says:
"Formulas cannot refer to totals, such as Meat Total, Seafood Total, and Grand Total in the example."
(all the above 'totals' refer to column totals generated by the pivot).

You are able to refer to row totals because the total are not actually 'calculated' by the pivot but it is summed up from the row totals already available in your original table (from which you created the pivot). But in the case of column totals they are 'calculated' by the pivot and hence it cannot be referred to in "getpivotdata".

by dklippert

Both =GETPIVOTDATA(PVTable1,"Grand Total Johnson")and =GETPIVOTDATA(PVTable1,"Grand Total March") work for me.
The members of the union must be valid.

This discussion is closed to new replies.