+ Reply to Thread
Results 1 to 4 of 4

GETPIVOTDATA to reference cell

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    GETPIVOTDATA to reference cell

    How can I get the GETPIVOTDATA function to reference another cell for the inputs without manually writing text in between parenthesis?

  2. #2
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: GETPIVOTDATA to reference cell

    You can just reference the cells directly:

    GETPIVOTDATA(data_field,pivot_table,field,item,...)

    The data_field can be a cell reference but you have to concatenate double quotes for it to work

    The pivot_table is generally an absolute reference to the top left most cell in the pivot (This is what I use)

    The field and item can be directly from your worksheet

    Something like:

    GETPIVOTDATA(A1 & "",$E$1,B1,B2) where

    A1 = "GDP"
    $E$1 is the location of the Pivot
    B1 contains the word "Country"
    B2 contains "USA"

    If your pivot has GDP by country and USA is one of them then the formula will return the value.
    If the post was helpful please click the black star on the bottom left to add some reputation and mark your thread as SOLVED.

    A day with nothing new achieved or learned, albeit however small, is a day lost forever?

    Constant Never Ending Improvement

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    Re: GETPIVOTDATA to reference cell

    Thank you, this works, for some reason it wasnt working before.

  4. #4
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: GETPIVOTDATA to reference cell

    No worries, glad you got it working.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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