+ Reply to Thread
Results 1 to 5 of 5

Link cells to multiple external workbooks

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Link cells to multiple external workbooks

    I have a workbook that I am using to trend data over time. The cells in the workbooks I want to reference to accomplish this are always the same but the names of the workbook change depending on the date.

    If I link one workbook, this is the equation I use

    ='[Red Alert 10-3-17.xlsm]Summary'!$B$36

    I want to be able to pull that formula down to populate the subsequent rows in my trending workbook, but I need the reference to the external workbook to change depending on the date.

    Example: if the above formula is in A1, I need A2 to be ='[Red Alert 10-4-17.xlsm]Summary'!$B$36 and A3 to be ='[Red Alert 10-5-17.xlsm]Summary'!$B$36

    So on and so on. How can I accomplish this without manually changing each date in the workbook reference of the formula?

    Thanks

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Link cells to multiple external workbooks

    A1 ="'[Red Alert "&TEXT(DATE(2017,10,3)+(ROWS($1:1)-1),"m-d-yy")&".xlsm]Summary'!$B$36"

    will return this:
    '[Red Alert 10-3-17.xlsm]Summary'!$B$36

    and when dragged down, will return this:
    '[Red Alert 10-4-17.xlsm]Summary'!$B$36
    '[Red Alert 10-5-17.xlsm]Summary'!$B$36
    etc.

    Try to work that into an INDIRECT function.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Link cells to multiple external workbooks

    Though you should be aware that the INDIRECT() function only works when the source workbook is open. If you need this to function on closed workbooks, then we probably need to explore other options.

    FWIW, if you have several files that you need to query data from, I think there could be some real value in exploring database queries as a means of extracting data from multiple spreadsheet files rather than worksheet formulas. It might easier (especially after the initial investment to build a good database and learn the query language) in the long run to maintain and use the data in that kind of format than stored as a bunch of different spreadsheet files.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Re: Link cells to multiple external workbooks

    This returns a #REF! error, I'm not sure where the mistake is.

  5. #5
    Registered User
    Join Date
    05-26-2017
    Location
    Burnsville, MN
    MS-Off Ver
    2016
    Posts
    50

    Re: Link cells to multiple external workbooks

    Sorry, I missed MrShorty's post. Indirect function will not work. And I'm just looking for something quick and simple, database query is not an option at this point.

+ 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. External referencing to multiple workbooks
    By Artyomaa in forum Excel General
    Replies: 2
    Last Post: 05-22-2017, 03:20 AM
  2. External link update problem when copying workbooks to other directories
    By martinsmuts in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2017, 03:15 PM
  3. Replies: 2
    Last Post: 09-29-2014, 01:14 AM
  4. [SOLVED] How to Find Cells With a Given External Link
    By EddieN1 in forum Excel General
    Replies: 2
    Last Post: 11-21-2013, 01:58 PM
  5. Link to external workbooks
    By chris1975 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-13-2007, 01:39 PM
  6. [SOLVED] listing cells that have external data link
    By T-Rex in forum Excel General
    Replies: 2
    Last Post: 10-18-2005, 08:05 PM
  7. Shade cells with links to external workbooks
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2005, 04:05 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