+ Reply to Thread
Results 1 to 3 of 3

=GETPIVOTDATA returning #REF! when using '=' to pull value through to another cell?

  1. #1
    Registered User
    Join Date
    10-27-2012
    Location
    Uk
    MS-Off Ver
    Excel 2010
    Posts
    98

    Question =GETPIVOTDATA returning #REF! when using '=' to pull value through to another cell?

    Hi All

    Can anyone offer any advice as to why =GETPIVOTDATA() would return #REF! ?
    All I'm doing is entering an '=' into the destination cell then clicking the item in the pivot I wish to return

    For example this formula works
    =GETPIVOTDATA("Case Number",$L$21,"Work Type","IMA","State2","DNA")

    But if I use the column label filter button to change pivotfield 'State2' from "DNA" to "Attended" then repeat the above process it returns #REF! for every column except the grand total?
    =GETPIVOTDATA("Case Number",$L$21,"Work Type","IMA","State2","Attended")

    Am I doing something really silly?
    Any/all advice welcome

    Many thanks
    V

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,054

    Re: =GETPIVOTDATA returning #REF! when using '=' to pull value through to another cell?

    That should work assuming the item is actually "Attended" and not, say, "Attended " with a space on the end. #REF errors with GETPIVOTDATA indicate that there is no cell visible in the table that matches all the criteria you specified.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    10-27-2012
    Location
    Uk
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: =GETPIVOTDATA returning #REF! when using '=' to pull value through to another cell?

    Ah ok, that's interesting.

    So if I remove State2 from the column labels it works
    And I notice that State2 isn't actually a column in the dataset sheet so I wonder where the info for the pivots is coming from, must be the pivot cache?

    At least I know where the problem lies now
    Thank you

+ 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. Replies: 3
    Last Post: 05-20-2017, 10:37 AM
  2. GETPIVOTDATA is returning a #REF!
    By kaplanj23 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-16-2015, 04:25 AM
  3. GETPIVOTDATA Dates Reference Returning #REF! Error
    By Jake32008 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2015, 03:42 PM
  4. [SOLVED] GETPIVOTDATA – How to force getpivotdata to accept missing data
    By scottc_00 in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 02-11-2015, 03:23 PM
  5. [SOLVED] Excel does not pull value from the cell - appears to pull formula
    By enjoyexcel in forum Excel General
    Replies: 2
    Last Post: 01-06-2015, 11:42 AM
  6. Replies: 4
    Last Post: 09-27-2011, 08:23 AM
  7. 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