+ Reply to Thread
Results 1 to 6 of 6

GETPIVOTDATA Dates Reference Returning #REF! Error

  1. #1
    Registered User
    Join Date
    10-28-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    GETPIVOTDATA Dates Reference Returning #REF! Error

    I am having trouble with the following formula

    =GETPIVOTDATA("[Measures].[Sum of Forecast]",'Sales Forecast'!$E$3,"[T_Sales_Forecast].[Forecast Month]","[T_Sales_Forecast].[Forecast Month].&["&TEXT(G$7,"YYYYMM")&"]")

    When I check if G$7 = the date in the pivot table (2/1/2015) the result is TRUE, however, text("G$7, "YYYYMM") = 2/1/2015 evaluates to false. Therefore I've tried changing the formula above to the following but still receive an error

    =GETPIVOTDATA("[Measures].[Sum of Forecast]",'Sales Forecast'!$E$3,"[T_Sales_Forecast].[Forecast Month]","[T_Sales_Forecast].[Forecast Month].&["&G$7&"]")

    Thanks in advance for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: GETPIVOTDATA Dates Reference Returning #REF! Error

    this would be easier to check if you uploaded a sample of your workbook, but i think you can delete all of the "[T_Sales_Forecast].[Forecast Month].&[" noise so the last field should just be ,G$7)

    i.e.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Registered User
    Join Date
    10-28-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: GETPIVOTDATA Dates Reference Returning #REF! Error

    Thanks for the response. I removed the noise and still same result.

    I'm trying to create a sample sheet with the error as there is proprietary info in the original as you can imagine.

  4. #4
    Registered User
    Join Date
    10-28-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: GETPIVOTDATA Dates Reference Returning #REF! Error

    Please refer to the attached sheet with adulterated data
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: GETPIVOTDATA Dates Reference Returning #REF! Error

    that's odd... when i open your file i see the reference error, but when i click into the formula editor and hit return it returns 78532 (the grand total for February as expected...)

  6. #6
    Registered User
    Join Date
    10-28-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: GETPIVOTDATA Dates Reference Returning #REF! Error

    That points me in a new direction to check. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vlookup and concotanate formula returning a reference error
    By okeefe87 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-22-2013, 04:48 AM
  2. Replies: 4
    Last Post: 09-27-2011, 08:23 AM
  3. Cell Reference of GetPivotData
    By bulldawg15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2007, 05:33 AM
  4. GETPIVOTDATA() with relative reference
    By Sune Fibaek in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-11-2006, 10:50 AM
  5. [SOLVED] GetPivotData function returning N/A error for some rows
    By Hari in forum Excel General
    Replies: 1
    Last Post: 05-15-2006, 02:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1