+ Reply to Thread
Results 1 to 4 of 4

Navigate Pivot Table Row Structure

  1. #1
    Registered User
    Join Date
    10-30-2017
    Location
    UK
    MS-Off Ver
    Exel 2010, 2013, 2016
    Posts
    3

    Navigate Pivot Table Row Structure

    Does anyone know how best to navigate a pivot table sideways (i.e. on same row but from column to column) using VBA?

    If I pick any pivot item in the pivot table, I can find its parent item or column heading within the same column by simply doing

    Please Login or Register  to view this content.
    However, I've been pulling my hair out trying to find a function or method that will allow me to navigate sideways, i.e. return the corresponding value (or range object) at the same level from another column. See attached sample table for example. If I select any item under "Library Part", I want a function that will return the corresponding value or object (range or pivot item) under "Supplier".

    PT.PNG

    Please Login or Register  to view this content.
    seems to be a natural candidate but I can't get it to work. GetPivotData doesn't seem to work for me either. I'm having a really bad day on this.


    My pivot table is formatted to in tabular mode with column headings and collapsible rows. All I want to do is be able to pick any sub pivot item and get its left-most parent on the same row.

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Navigate Pivot Table Row Structure

    You might try vlookup to the left. You'll have to use cell locations as references instead of choosing the cells in the PT with your mouse. Not VBA, but might do the trick.

    Pete

  3. #3
    Registered User
    Join Date
    10-30-2017
    Location
    UK
    MS-Off Ver
    Exel 2010, 2013, 2016
    Posts
    3

    Re: Navigate Pivot Table Row Structure

    Thanks for the tip.

    Regards.

  4. #4
    Registered User
    Join Date
    10-30-2017
    Location
    UK
    MS-Off Ver
    Exel 2010, 2013, 2016
    Posts
    3

    Re: Navigate Pivot Table Row Structure


+ 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. [SOLVED] Pivot table - Unable to navigate to source data from pivot table
    By Richavlaues in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2016, 10:37 AM
  2. Help! Pivot table changes background on re-structure
    By aronax in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-05-2015, 04:44 AM
  3. Organizational Structure with Pivot
    By fritz_os in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-22-2015, 02:14 AM
  4. Replies: 1
    Last Post: 06-11-2014, 10:12 PM
  5. HTML Table Navigate
    By Jimbo77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2014, 03:52 PM
  6. pivot table output structure
    By koochandkai in forum Excel General
    Replies: 1
    Last Post: 08-20-2012, 02:37 PM
  7. Table structure
    By vietdieu in forum Excel General
    Replies: 1
    Last Post: 02-03-2012, 02:19 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