Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default GETPIVOTDATA in Excel 2007

Hello.

I'm using Excel 2007.

I have this formula in a cell:
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek","200829")

When I change the fweek value to a cell refrence as in the formula below, I
get a #REF error (where DY22 contains the value "200829"):
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek",DY22)

What is puzzling is that I have many other formulas just like this that
work. The only difference is that those formulas reference pivot tables that
were originally built in 2003 (the file was converted from 2003 to 2007) and
my formula that errors out is referencing pivot tables built in 2007.

Any thoughts on what the problem could be?

Any assistance is appreciated. Thanks.

--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default GETPIVOTDATA in Excel 2007

Hi Jeff,

I can't duplicate your problem. If I change a GETPIVOTDATA static argument
to a cell reference containing that entry everything works fine. If there
are other formulas of the same nature that are working I would look to make
sure the 200829 entry in cell DY22 does infact match an entry in the pivot
table. For example if you enter 200829 followed by a space in DY22 it will
fail. Or if the pivot table entry 200829 is followed by a space but the
entry in DY22 is not you will get an error. Simply put the two entries must
be exactly the same.

--
Cheers,
Shane Devenshire


"Jeff Reese" wrote:

Hello.

I'm using Excel 2007.

I have this formula in a cell:
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek","200829")

When I change the fweek value to a cell refrence as in the formula below, I
get a #REF error (where DY22 contains the value "200829"):
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek",DY22)

What is puzzling is that I have many other formulas just like this that
work. The only difference is that those formulas reference pivot tables that
were originally built in 2003 (the file was converted from 2003 to 2007) and
my formula that errors out is referencing pivot tables built in 2007.

Any thoughts on what the problem could be?

Any assistance is appreciated. Thanks.

--
Jeff

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default GETPIVOTDATA in Excel 2007

Hi again,

The longer formula is:

=IF(ISERR(INDEX($C$4:$C$22,LARGE((MAX($E$4:$E$22)= $E$4:$E$22)*ROW($E$4:$E$22),ROW(A1))-3,1)),"",INDEX($C$4:$C$22,LARGE((MAX($E$4:$E$22)=$ E$4:$E$22)*ROW($E$4:$E$22),ROW(A1))-3,1))

Again it must be array entered.
--
Cheers,
Shane Devenshire


"Jeff Reese" wrote:

Hello.

I'm using Excel 2007.

I have this formula in a cell:
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek","200829")

When I change the fweek value to a cell refrence as in the formula below, I
get a #REF error (where DY22 contains the value "200829"):
=GETPIVOTDATA("Overall Rating",$DU$7,"fweek",DY22)

What is puzzling is that I have many other formulas just like this that
work. The only difference is that those formulas reference pivot tables that
were originally built in 2003 (the file was converted from 2003 to 2007) and
my formula that errors out is referencing pivot tables built in 2007.

Any thoughts on what the problem could be?

Any assistance is appreciated. Thanks.

--
Jeff

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 in Excel 2007 Kirk P. Excel Worksheet Functions 6 August 8th 07 09:00 PM
GETPIVOTDATA in Excel 2007 Kirk P. Excel Worksheet Functions 0 August 8th 07 08:24 PM
GETPIVOTDATA....Excel 2000....Desperation! Kev[_2_] Excel Worksheet Functions 1 June 12th 07 10:42 AM
GetPivotData in excel for Mcintosh North421 Excel Worksheet Functions 0 January 30th 07 08:57 PM
Dynamic Getpivotdata in Excel XP [email protected] Excel Worksheet Functions 2 February 10th 05 02:40 AM


All times are GMT +1. The time now is 02:13 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"