Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Peter
 
Posts: n/a
Default Getpivotdata - referncing a data_field resulting in "REF!

Hi,

Im using GETPIVOTDATA(data_field,pivot_table,field1,item1,f ield2,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


  #2   Report Post  
Peter
 
Posts: n/a
Default

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.



  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

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)


Peter wrote:
Hi,

Im using GETPIVOTDATA(data_field,pivot_table,field1,item1,f ield2,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




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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getpivotdata update issues? Calgarychris Excel Discussion (Misc queries) 0 March 30th 05 01:59 AM
how to convert GETPIVOTDATA from excel 2000 to excel 2002... Need_help_on_excel Excel Worksheet Functions 1 March 15th 05 01:08 AM
GETPIVOTDATA function SRiley Excel Worksheet Functions 2 December 31st 04 06:15 PM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"