Getpivotdata - referncing a data_field resulting in "REF!

P

Peter

Hi,

Im using GETPIVOTDATA(data_field,pivot_table,field1,item1,field2,item2,...)

and it works just fine until I try and reference a cell for
"data_field,pivot_table".

If I type the name of the data_field into the formula it works fine when
referenceing a cell I get #REF!

I might ad that anywhere else in the formula I am able to reference cell


for example

This works
=GETPIVOTDATA("New Subscribers",$A$3,E1,I$4+1,"WeekDay",$G9)

This doesnt
=GETPIVOTDATA(E3,$A$3,E1,I$4+1,"WeekDay",$G9) where cell E3 contanins the
text : New Subscribers
 
P

Peter

Interestingly this works too

=GETPIVOTDATA(A1 & E3,$A$3,E1,I$4+1,"WeekDay",$G9) where cell E3 contanins
the
text : New Subscribers and A1 is a blank cell.
 
D

Debra Dalgleish

I can't explain why, but if you append an empty string at either end of
the cell reference, the formula should work, e.g.:

=GETPIVOTDATA(E3&"",$A$3,E1,I$4+1,"WeekDay",$G9)
or
=GETPIVOTDATA(""&E3,$A$3,E1,I$4+1,"WeekDay",$G9)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top