+ Reply to Thread
Results 1 to 3 of 3

Multiple Workbook problem

  1. #1
    Registered User
    Join Date
    07-08-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2011
    Posts
    7

    Angry Multiple Workbook problem

    I have this formula in a workbook but now I have to take the worksheet out and make it into its own workbook. I'm having trouble linking the new workbook BrianSummary.xlsx to the original workbook that holds on the data BrianFormulas.xlsx

    =SUMPRODUCT(SUMIF(INDIRECT("'"&list&"'!$B$4:$X$4"),B$4,INDIRECT("'"&list&"'!B$14:X$14")))
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Multiple Workbook problem

    When your indirect formula evaluates, it's basically looking for tab Jan through to July in the current workbook, which don't exist. You therefore need to include a reference to the original workbook within the formula.

    In B4:

    =IF(SUMPRODUCT(SUMIF(INDIRECT("'[BrianFormulas.xlsx]"&list&"'!$A$2"),$A$2,INDIRECT("'[BrianFormulas.xlsx]"&list&"'!b$4")))=0,"",(SUMPRODUCT(SUMIF(INDIRECT("'[BrianFormulas.xlsx]"&list&"'!$A$2"),$A$2,INDIRECT("'[BrianFormulas.xlsx]"&list&"'!b$4")))))

    A further problem you have, however, is that (as far as I'm aware) the indirect formula won't work unless both workbooks are open, so it kinda makes splitting them into separate workbooks redundant. Off the top of my head, maybe the best way around this would be to collate all months of BrianFormulas onto one summary sheet, and then use a combination of OFFSET and MATCH to pull back the info based on cell A2.

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Multiple Workbook problem

    Quote Originally Posted by robgardner15 View Post
    I have this formula in a workbook but now I have to take the worksheet out and make it into its own workbook. I'm having trouble linking the new workbook BrianSummary.xlsx to the original workbook that holds on the data BrianFormulas.xlsx

    =SUMPRODUCT(SUMIF(INDIRECT("'"&list&"'!$B$4:$X$4"),B$4,INDIRECT("'"&list&"'!B$14:X$14")))
    Hi Rob

    You shouldn't start another thread for the same problem.
    I have answered your original thread.
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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