+ Reply to Thread
Results 1 to 5 of 5

GETPIVOTDATA #REF Problem with Dates

  1. #1
    Registered User
    Join Date
    07-25-2005
    Location
    Leeds, UK
    MS-Off Ver
    2010
    Posts
    12

    Question GETPIVOTDATA #REF Problem with Dates

    Happy New Year everyone.

    I have a pivot table with some simple row fields which are dates. When I enter a '=' and select a cell in the pivot Excel automatically creates the GETPIVOTDATA string. However, when pressing enter the formula returns #REF?

    Has anyone had anything similar?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: GETPIVOTDATA #REF Problem with Dates

    Hi JayHam,

    Below is what Excel in-built help says :-

    "
    If pivot_table is not a range in which a PivotTable report is found, GETPIVOTDATA returns #REF!.

    If the arguments do not describe a visible field, or if they include a report filter in which the filtered data is not displayed, GETPIVOTDATA returns #REF!.
    "


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-25-2005
    Location
    Leeds, UK
    MS-Off Ver
    2010
    Posts
    12

    Re: GETPIVOTDATA #REF Problem with Dates

    The only problem is that the Pivot Table is referenced correctly and the arguments refer to a visible field. It's as though it doesn't like the date argument? If I remove the field containing the date, and add one that is 'Customer' lets say, the above process works perfectly.

    I'm thinking it has something to do with how the Pivot Table is interpreting and displaying the date field.

    Will try and alter the pivot cache and get an exmaple workbook up as it currently contains confidentail information.

    Cheers,

    Jamie

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: GETPIVOTDATA #REF Problem with Dates

    Okay.. m looking forward for your example workbook.. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: GETPIVOTDATA #REF Problem with Dates

    are you trying to reference a custom subtotal? what does the getpivotdata formula look like?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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