+ Reply to Thread
Results 1 to 7 of 7

Can Excel link a query or code to pull pivot table report data

Hybrid View

Miskondukt Can Excel link a query or... 01-22-2013, 11:48 AM
MarvinP Re: Before posting the how... 01-22-2013, 12:08 PM
Miskondukt Re: Before posting the how... 01-22-2013, 02:50 PM
Miskondukt Re: Can Excel link a query or... 01-22-2013, 04:35 PM
MarvinP Re: Can Excel link a query or... 01-23-2013, 01:06 AM
Miskondukt Re: Can Excel link a query or... 02-06-2013, 03:10 PM
Miskondukt Re: Can Excel link a query or... 02-06-2013, 04:57 PM
  1. #1
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Can Excel link a query or code to pull pivot table report data

    Alright, so a many of my Google searches for Excel help usually ended up with me browsing this forum and thus registering to view more. Now, I find myself stuck at a simple question of can Excel perform this function before attempting to post the question of how I manipulate Excel to do this function; however, as I have browsed a large number of threads there was a consistent theme - 'You've broken the rules and we've locked your thread until you acknowledge you've broken the rules and correct it." So, to avoid that I've also got the rules' page open as I type.

    I've searched and searched for the answer to my question, and am always returned with the 'getpivotdata' result. However, that's is and isn't what I'm looking for. I have a pivot table that, as in any other pivot table, will pull a data report of the filters when double clicking in the appropriate field. I've used the getpivotdata to locate the value of the filtered pivot table, but I was wondering if I can link the getpivotdata or a vlookup to pull that pivot table's report data for said entry.

    I have a search query here:

    \1

    With database listing on sep tab:

    \1

    And the Report the Pivot table pulls when double clicking into:

    \1

    Can Excel link a query or code to pull that pivot table report data, and not just the hard figure, outside of the pivot table itself?

    If so, what is the term I am looking for to find myself the answer?

    Thank you!
    Attached Images Attached Images
    Last edited by Miskondukt; 01-22-2013 at 03:00 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Before posting the how can I do this, need to know IF Excel can do this.

    Hi Miskondukt and welcome to the forum,

    I'm not sure what the question is, exactly, but it sounds like you want to copy and paste "values only" from a Pivot Table to another region in a workbook. This is pretty common.

    If that isn't what you need then we really need a sample workbook with a sample pivot showing what you expect the results to look like.

    You can post a sample workbook by clicking on "Go Advanced" below the message area and then on the Paper Clip Icon above the advanced message area to post a sample workbook.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Before posting the how can I do this, need to know IF Excel can do this.

    Awesome! Had a nice long detailed post, hit "GO Advanced" and it gets WIPED OUT!

    Now for the WL:CRN version (was long:can't read now): Yes, I stole this from TL:DR.

    In the attached sheet on the DB tab in cell N8 ("17"), double click. That produces an expanded report sheet/tab as designated by the pivot tables design.

    Ok, now the master sheet, right side Cell A12:13 has a 'getpivotdata' formula in it pointing to the pivot table's data. While this does produce the condensed answer of the pivot tables design (17), I'd like to know if I can attach a remote formula or something to pull the expanded data-the newly produced tab/sheet when double clicking from the pivot table-from a entirely different sheet/tab?

    Thanks again
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Can Excel link a query or code to pull pivot table report data

    Friendly bump

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Can Excel link a query or code to pull pivot table report data

    HI,

    If you want to double click on Tab DB and then take that expanded data (on this new sheet) and copy and paste it to the Master sheet, you will need to do it using VBA.

    I turned on the Macro Record feature and double clicked on N8 on the DB tab and found it created a Sheet1 with the expanded data that resulted in the "17" data.
    The VBA code to do this is:
    Worksheets("DB").Range("N8").ShowDetail = True

    Then using VBA you would need to have something like:

    Worksheets("Sheet1").range("B1").Copy Destination:=Worksheets("Master").Range("A12")

    I have no idea what you want to copy or paste from the new Sheet1 to the Master so the above is a sample of what I think you might want. Could you be more specific on what you want to end up in A12.

  6. #6
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Can Excel link a query or code to pull pivot table report data

    Hi Guys,

    Sorry for not getting back on this. My cpu took a dive.

    Ok, so this looks like we're getting in the right area. That additional information created on a new sheet, "sheet1", that pulled when double clicking the cell represented by "17" is the pivot table's data report from the database. This is the information I am trying to be able to view without having to switch to that pivot table's tab/sheet.

    Now I'm trying to link a cell that can pull this data report, or the new sheet "sheet1" as mentioned before, from a tab/sheet that does not contain the database nor the pivot table for that database's tab.

    The document we have has our records/database and pivot table on one sheet. Then we create a new tab per day of the month with a list of exported data that we need to reference back to the database's records to fill out the new day's data.

    We're trying to get away from using a long-winded sheet that only filters, then having to scroll through thousands of rows.

    Thanks!

  7. #7
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Can Excel link a query or code to pull pivot table report data

    I think a better way of asking this question is, how can I extract the pivot table's report data (the new sheet that is produced when double clicking a value inside a generated pivot table) from a sheet that does not contain the pivot table?

    I am not looking for the returned value that the "getpivotdata" extracts, I am looking to generate the data as mentioned above.

    Thank ya!

+ 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