+ Reply to Thread
Results 1 to 2 of 2

Linking to external workbooks

  1. #1
    Registered User
    Join Date
    05-18-2008
    Posts
    54

    Linking to external workbooks

    Hi All

    I'm setting up a worksheet (Base.xls) for each day of the month to record results from each day. These results are gathered in a separate workbook everyday(Jan1.xls). Each day has its own file and is created everyday.

    I can link the cell for the day to the existing day's workbook, however I need to be able to create the links to future workbooks in (Base.xls) in advance so that the file updates automatically once the day file has been created.

    I have attached a sample so that you see what I mean.

    Thankyou for any help tht you may be able to give.

    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Matt,

    This can be done using the Indirect function but as the Excel 2003 Help files state...

    If ref_text refers to another workbook (an external reference), the other workbook must be open. If the source workbook is not open, INDIRECT returns the #REF! error value.
    (Others may be able to suggest alternative methods)

    Is there any way that you can redesign your file structure to overcome this?

    - possibly by "reversing the links"?
    If the links were reversed you could use a vlookup from the "Jan1", "Jan2" files etc to the single "Base" file.

    - or using a single file with a "database structure" containing the info for every day?

    Another (more complicated?) option is that someone sets up a macro for you which goes through the existing files & updates the Base file with the values from the daily files...

    Or a slow manual way could be to just use copy & paste (+ typing) to type in the non-existent file references eg
    cell B4 is ='C:\Documents and Settings\HP_Owner\Desktop\[jan1.xls]Sheet1'!$B$2
    select this cell, press [F2], press [ctrl + shift + home], [ctrl + c], [Enter] (have Tools-Options-Edit setup to move the selection to the right after enter).
    This selects cell C4, press [ctrl + v], [F2], and change the file name ie:
    cell c4 would be ='C:\Documents and Settings\HP_Owner\Desktop\[jan1.xls]Sheet1'!$B$2
    change this to ='C:\Documents and Settings\HP_Owner\Desktop\[jan2.xls]Sheet1'!$B$2
    press [enter] & then [esc] when Excel asks where you want to update the values from.


    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ 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