+ Reply to Thread
Results 1 to 4 of 4

Linking and Dynamically Sum Data between 2 Workbooks with Multiple Criteria

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Chicago, United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Linking and Dynamically Sum Data between 2 Workbooks with Multiple Criteria

    Hello,

    I've been trying to link data between tables in Workbook1 and Workbook2 according to two criteria, then subtotaling corresponding values that align with those two criteria in Workbook2, place that subtotal in the corresponding cell in Workbook1, and finally be able to dynamically update if and when changes are made to the table in Workbook2.

    I've tried the following methods but have encountered various problems:

    1. SUMPRODUCT formula: Placed in Workbook1 =(SUMPRODUCT(--('Workbook2.xlsx'!Worksheet2[Account2]=INT(LEFT(Account1,6))),--('Workbook2.xlsx'!Worksheet2[Subacct2]=INT(LEFT(Subacct1,4))),--('Workbook2.xlsx'!Worksheet2[DataColumntoSum]))

    This formula works and provides the correct calculation when both Workbooks are open, however it does not dynamically update if I just open Workbook1. One of the limitations of the SUMPRODUCT function I discovered is that it does not work well with linkages between closed workbooks.

    2. Pivot Tables: I added a pivot table in Workbook1 to summarize the data from the table in Workbook2, and then I used the following GETPIVOTDATA formula to extract data from the pivot table to place in the desired table in Workbook1:
    IFERROR(GETPIVOTDATA("DataColumntoPull",'PivotTable'!$A$4,"Account2",Account1,"Subacct2",Subacct1),)

    The formula works to pull the correct subtotal from the pivot table, and I had hoped the pivot table summary in Workbook1 would fix the updating problem from the SUMPRODUCT function. However, I learned that Pivot tables with data sources from other workbooks can not be refreshed when they are linked to dynamic table ranges (e.g. Table/Range = 'Workbook2.xlsx'!Table2Name). Whenever I Refresh Data, I get the error: "Reference is Not Valid".

    I've attached examples of the two workbooks and their various tables of data for some reference. Ultimately I would like to pull data from Workbook2 (even if the workbook is closed) and dynamically calculate subtotals in the yellow cells in Workbook1, according to their Account and Subacct numbers.

    Any help would be greatly appreciated!

    (This is my first posting of a question so please forgive any errors in forum etiquette or description).

    Thanks,
    thegivenbeing
    Last edited by thegivenbeing; 07-15-2015 at 12:09 PM.

  2. #2
    Registered User
    Join Date
    10-03-2013
    Location
    Chicago, United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Linking and Dynamically Sum Data between 2 Workbooks with Multiple Criteria

    Another thought:

    Although I'd prefer to avoid VBA and macros since that level of coding would be less transparent to other colleagues, I am open to a macro solution to this issue. In my original Workbook1, I already have some rudimentary macro buttons to navigate the spreadsheet so adding a new button to perform the link/sum function and "Refresh" all the cells could be another solution.

    I unfortunately do not have the wherewithal to write such a macro.

    Again, thanks for any help!

    -thegivenbeing

  3. #3
    Registered User
    Join Date
    10-03-2013
    Location
    Chicago, United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Linking and Dynamically Sum Data between 2 Workbooks with Multiple Criteria

    Bump no response

  4. #4
    Registered User
    Join Date
    10-03-2013
    Location
    Chicago, United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Linking and Dynamically Sum Data between 2 Workbooks with Multiple Criteria

    Bump no response

+ 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. Linking Data from Multiple Workbooks into a Master Copy
    By lilsum1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2015, 04:22 PM
  2. Replies: 11
    Last Post: 02-18-2014, 09:03 AM
  3. automatic macro with linking data in two workbooks, multiple row data to one row data
    By garfield8626 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 01:47 PM
  4. Dynamically Linking Tranposes Data
    By dave_gordon in forum Excel General
    Replies: 15
    Last Post: 05-03-2012, 11:13 PM
  5. Replies: 2
    Last Post: 09-26-2011, 08:47 PM
  6. sum ifs on multiple criteria but dynamically moves.
    By Biagio85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2011, 11:26 AM
  7. dynamically linking multiple identical structured files
    By perinouk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-12-2007, 08:09 AM

Tags for this Thread

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