+ Reply to Thread
Results 1 to 3 of 3

External reference with variable workbook name

  1. #1
    Registered User
    Join Date
    12-21-2014
    Location
    Quebec
    MS-Off Ver
    2013
    Posts
    2

    External reference with variable workbook name

    Hello everyone,

    I'm referencing an external workbook and need part of the workbook name to be a variable with a SUMPRODUCT formula. The initial formula always need me to manually change part of formula each time, very frustrating.
    My base formula is; =SUMPRODUCT(--('[_Budget 2014.xlsx]Jan'!$K:$K=$A$244);'[_Budget 2014.xlsx]Jan'!$L:$L)
    I need "2014" to be a variable, with the new information pulled from a cell
    within the referencing workbook.

    What is the syntax for this reference? I've try with CONCATENATE to build-up the reference. Numerous combinations and have not had any luck:
    - =SUMPRODUCT(--(concatenate(Setup!A1;P247;Setup!A2);concatenate(Setup!A1;P247;Setup!A3)))
    - =SUMPRODUCT(--(concatenate(“&'[_Budget&”;P247;Setup!A2);concatenate(“&'[_Budget&”;P247;Setup!A3)))
    - =SUMPRODUCT(CONCATENATE(Setup!A1;P247;Setup!A2);CONCATENATE(Setup!A1;P247;Setup!A3))

    Variable are:
    Setup!A1 = '[_Budget
    P247 = 2015
    Setup!A2 = .xlsx]Jan'!$K:$K=A247
    Setup!A3 = .xlsx]Jan'!$L:$L

    The ' seems to be part of the problem with the Concatenate formula. Don’t know how to solve it.
    Does someone know what the problem is?

    Thanks in advance.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: External reference with variable workbook name

    indirect will help
    but link source must be opened

  3. #3
    Registered User
    Join Date
    12-21-2014
    Location
    Quebec
    MS-Off Ver
    2013
    Posts
    2

    Re: External reference with variable workbook name

    Sumproduct work with closed files. I use concatenate to build the external link.
    I dont know how to use indirect in this way. Does it still need to have the file open?

+ 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. [SOLVED] External reference with variable workbook name?
    By KenV in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-04-2019, 06:21 PM
  2. Creating an external reference with a variable
    By ruslruslrusl in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-27-2014, 05:12 PM
  3. External reference with variable sheet name
    By mrossman04 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2012, 04:43 PM
  4. External reference with variable filenames
    By donavank in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-02-2008, 12:32 PM
  5. Variable External Reference:
    By fil in forum Excel General
    Replies: 2
    Last Post: 01-18-2008, 06:33 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