ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I make the data_field in the getpivotdata formula a cellrefere (https://www.excelbanter.com/excel-worksheet-functions/41341-can-i-make-data_field-getpivotdata-formula-cellrefere.html)

Henk

Can I make the data_field in the getpivotdata formula a cellrefere
 
I.e. syntax for getpivotdata is
GETPIVOTDATA(data_field,pivot_table,field1,item1,f ield2,item2,...)

I'd like the data_field to be a reference, but I get #REF errors when I try
this.

ex: GETPIVOTDATA ($B$1,pivot_table,field1,item1,field2,item2,...)

any ideas?

Debra Dalgleish

Add an empty string to the data field reference, e.g.:

=GETPIVOTDATA(J5&"",$A$6,"Region","Central")

Henk wrote:
I.e. syntax for getpivotdata is
GETPIVOTDATA(data_field,pivot_table,field1,item1,f ield2,item2,...)

I'd like the data_field to be a reference, but I get #REF errors when I try
this.

ex: GETPIVOTDATA ($B$1,pivot_table,field1,item1,field2,item2,...)

any ideas?



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



All times are GMT +1. The time now is 05:55 AM.

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