+ Reply to Thread
Results 1 to 2 of 2

Extract data from Pivot Table (If statement & GetPivotdata)

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    19

    Extract data from Pivot Table (If statement & GetPivotdata)

    Hi All,

    I'd like to extract some data from a pivot table if a cell matches another cell. For example, if a particular company offered sale, I want to list all the years they had sale in. I have a pivot table where the Company numbers (titled 'Company') and years (titled 'year') are in the Report Filter section.

    Then, in an excel tab I have the following:


    Company Year Sale
    1 sale
    2 no sale
    3 sale

    So, in column 2 I would like to have a formula/function stating, if Column 3 says sale then copy the years for company in column 1 from the pivot.

    So, I'd get something like below:

    Company Year Sale
    1 2012, 2013, 2014 sale
    2 no sale
    3 2014, 2015 sale

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Extract data from Pivot Table (If statement & GetPivotdata)

    Can you upload a sanitized sample file? Might be easier to pull the info from the data, instead of the pivot table. But we need to see how it's organized.

+ 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 pivot table data
    By bbertram in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-10-2015, 06:53 PM
  2. I need to get data from Pivot Table via getpivotdata formula
    By joeycrak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 05:14 PM
  3. Extracting data from pivot table using getPivotData function
    By shantanuk in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-24-2012, 08:20 AM
  4. Extract data from Pivot Table
    By Skipper Jones in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-01-2012, 07:45 PM
  5. Pivot Table help - Getpivotdata
    By pdawg123 in forum Excel General
    Replies: 1
    Last Post: 03-21-2012, 09:47 AM
  6. Pivot Table double click extract/ GETPIVOTDATA()
    By zonino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2009, 04:15 PM
  7. GETPIVOTDATA-on a pivot table
    By Hennie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-06-2006, 06:50 PM

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