+ Reply to Thread
Results 1 to 7 of 7

Get Pivot Data from External Workbook

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Get Pivot Data from External Workbook

    Hi,

    Assume that I have 2 workbooks, WB1 and WB2. Assume that both workbooks are open at the same time.

    WB1 is the output workbook and WB2 is the source of the data with the pivot tables. Note: WB2 has multiple sheets, each of which has multiple Pivot tables PTA, PTB PTC, PTD....... PT 'n'.

    I want a formula in WB1, that retrieves data the first line of the rowfield data, in PTA, on Worksheet1 from WB2.


    Thanks in advance.


    AXl

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Get Pivot Data from External Workbook

    You would need a UDF - is that OK?
    Good luck.

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Get Pivot Data from External Workbook

    Not familiar with the concept of UDF's I'm afriad, I will probably need spoon feeding.

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Get Pivot Data from External Workbook

    It means VBA code that you call from a cell. I would ideally need to see a sample of exactly what you want returned and how.

  5. #5
    Registered User
    Join Date
    01-17-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Get Pivot Data from External Workbook

    I have attached a dummy workbook.

    WB1 is the output
    Wb2 is the source

    The pivots are labelled as follows: AllPivot1 AllPivot2 AllPivot3 etc.

    In WB1, for AllPivot1:
    I would like the first data under "Sec-Name".

    for AllPivot 2:
    I would like the "Total" for the first "Ast-Asset Currency Name"

    For AllPivot3:
    I would like the "Grand Total" for the "lowest Rating".


    WB1.xlsWB2.xls

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Get Pivot Data from External Workbook

    Are the pivots always in the same location? If so, it could be done without VBA.

  7. #7
    Registered User
    Join Date
    01-17-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Get Pivot Data from External Workbook

    Well, what happens is that there is a macro which filters out the data from a different workbook and THEN creates the pivots. So to start with the pivots are not there.
    But once they are created, then yes they are always in the same place, however the data may vary and so the pivots may lenghten or shorten.

+ 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