+ Reply to Thread
Results 1 to 6 of 6

Getpivot data function to extract a whole column from a pivot table

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Georgia, USA
    MS-Off Ver
    Microsoft office 365
    Posts
    15

    Getpivot data function to extract a whole column from a pivot table

    screenshot excel help.png

    I have searched the forum to find this answer and while I found some I cannot seem to apply it to my worksheet. I am getting myself confused.

    I need to use the GETPIVOTDATA since I believe it is the only way to get the whole column for a pivot table to a table outside of the pivot table.

    Thanks for any help.

    Toni
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Getpivot data function to extract a whole column from a pivot table

    GETPIVOTDATA returns a specific value for a specific set of fields. The only way you could get it to return an array would be to pass it an array of field names and if you could do that, you probably don't need GETPIVOTDATA at all. If you have the new spill functionality, all you'd need would be something like:
    =G5:INDEX(G:G,MATCH(1E+100,G:G,1))
    Rory

  3. #3
    Registered User
    Join Date
    01-24-2020
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    95

    Re: Getpivot data function to extract a whole column from a pivot table

    Hi, there

    I'm afraid neither in Excel nor in VBA, GETPIVOTTABLE function would render to you a whole column of values; but this VBA code does the trick,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then further calculations can be conducted with the array.

  4. #4
    Registered User
    Join Date
    04-02-2020
    Location
    Georgia, USA
    MS-Off Ver
    Microsoft office 365
    Posts
    15

    Re: Getpivot data function to extract a whole column from a pivot table

    Thank you. I will try it tomorrow!

  5. #5
    Registered User
    Join Date
    04-02-2020
    Location
    Georgia, USA
    MS-Off Ver
    Microsoft office 365
    Posts
    15

    Re: Getpivot data function to extract a whole column from a pivot table

    Thank you. I will try it!

  6. #6
    Registered User
    Join Date
    04-02-2020
    Location
    Georgia, USA
    MS-Off Ver
    Microsoft office 365
    Posts
    15

    Re: Getpivot data function to extract a whole column from a pivot table

    It worked thank you so much.

+ 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. Extract Data from Pivot Table row by row
    By jabullen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-29-2020, 12:29 PM
  2. Extract Data from Pivot Table with VBA
    By gclode in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2019, 01:53 PM
  3. Replies: 6
    Last Post: 01-24-2017, 06:56 PM
  4. [SOLVED] Extract data from a pivot table using GETPIVOTDATA function
    By Philangr8 in forum Excel General
    Replies: 1
    Last Post: 10-30-2015, 04:00 PM
  5. Extract pivot table data
    By bbertram in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-10-2015, 06:53 PM
  6. Extract data from Pivot Table
    By Skipper Jones in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-01-2012, 07:45 PM
  7. [SOLVED] extract data from pivot via vba (Getpivot is not convenient)
    By Sandip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2006, 11:40 AM

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