+ Reply to Thread
Results 1 to 7 of 7

GetPivotData

  1. #1
    Registered User
    Join Date
    08-04-2010
    Location
    Cumming, GA
    MS-Off Ver
    Excel 2007
    Posts
    4

    GetPivotData

    I have a GetPivotData Function =GETPIVOTDATA("VPMO_PROJ_ID",'TCO Pivot (2)'!$A$9,"Type","TCO Active","Supervisor","TBD") and it brings back the correct value, but when I drill down on the value, it brings me to the top left corner of the pivot table and not to the cell that contains the value. Can this be done?
    I can do a cell reference, but then I lose the dynamic capability of the GetpivotData function.

    Any help would be greatly appreciated. I am using Excel 2007

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

    Re: GetPivotData Issue

    Could you clarify this: "but when I drill down on the value"? If you mean it selects A9, that's because A9 is the only cell referenced by your formula. There is no way to alter that behaviour.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    08-04-2010
    Location
    Cumming, GA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: GetPivotData Issue

    that assumption is correct. I was wanting it to select the value associated with Type = TCO and supervisor = TBD instead of the Pivot table cell.

    I have attached a bmp copy of my pivot table and where I was hoping the GetPivotdata function would take me.

    I have tried to upload my file as a zip, but I get a DB error on this site..
    Attached Files Attached Files
    Last edited by abbymagga; 08-04-2010 at 10:16 AM.

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

    Re: GetPivotData

    You can't do that. You are not drilling down on the pivot table, you are simply using Excel's native function that jumps to cells you have referenced directly in the formula.

  5. #5
    Registered User
    Join Date
    08-04-2010
    Location
    Cumming, GA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: GetPivotData

    Do you know of anyway I can do it dynamically? I know I can use a cell reference, but if more supervisors are added then it would refer to the wrong cell.

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

    Re: GetPivotData

    You would have to write some code to intercept the double-click event of the sheet, locate the row/column of interest and then select it. There is nothing built-in that will do what you want unless you use a direct cell reference, which is a bad idea.

  7. #7
    Registered User
    Join Date
    08-04-2010
    Location
    Cumming, GA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: GetPivotData

    ok. Thanks!!

+ 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