View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bryon Scruggs Bryon Scruggs is offline
external usenet poster
 
Posts: 3
Default Can getpivotdata use a cell reference?

Let it be known to all that Glen rules. If I am the data monkey he is the
data ape.

"Glenn" wrote:

=GETPIVOTDATA("[Measures].[Impressions: Delivered
Impressions]",$A$4,"[Placement].[Placement Site Alias]","[Placement].[Placement
Site Alias].["&B1&"]")


Bryon Scruggs wrote:
Nope. Neither of these formulas work:
=GETPIVOTDATA("[Measures].[Impressions: Delivered
Impressions]",$A$4,"[Placement].[Placement Site
Alias]","[Placement].[Placement Site Alias].&[b1]")

=GETPIVOTDATA("[Measures].[Impressions: Delivered
Impressions]",$A$4,"[Placement].[Placement Site
Alias]","[Placement].[Placement Site Alias].[&b1]")


"Brotha Lee" wrote:

Bryon,

I am not familiar with XL2007 however could it be that the formula does not
recognize due to the fact you have to convert it to string.

Maybe something like this works:
=GETPIVOTDATA("[Measures].[Impressions: Delivered
Impressions]",$A$27,"[Time].[Dates]","[Time].[Dates].[Month]."&H1)

HTH,

Brotha lee
"Bryon Scruggs" wrote:

In previous versions of Excel it was possible to use a cell reference in a
getpivotdata formula. Im not able to do this in Excel 2007.

Example:
Excel automatically generates this formula
=GETPIVOTDATA("[Measures].[Impressions: Delivered
Impressions]",$A$27,"[Time].[Dates]","[Time].[Dates].[Month].[august 2008]")

I try and replace the €śaugust 2008€ť with a cell reference like H1, but this
generates a #REF! error. Ive played around with the syntax but nothing seems
to work. Any ideas?

Thanks,
The Datamonkey