+ Reply to Thread
Results 1 to 7 of 7

Linking Excel Workbook

  1. #1
    Registered User
    Join Date
    05-07-2011
    Location
    oh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Linking Excel Workbook

    Hello,

    I am trying to link two workbooks. The first workbook contains information that is updated daily and therefore a new version of the file is saved each business day from a template file. For example: let's say the template file name is "Template File.xls" and each business day a new file is created with the file name such as "050911 File.xls"

    The second file is a summary file that is linked to the file that will be created each day as described above in order to grab some linked numbers.

    My question is, how can I setup the summary file to link to the new file names that I anticipate will be created each day?

    Currently, the process is to manual as it involves updating date on the linked file path for each day across multiple columns and rows. I hope there is a way of automating this process.

    Thanks.
    Last edited by habesha; 05-10-2011 at 11:02 PM. Reason: SOLVED!

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Linking Excel Workbook

    Put the date of the file you want in a cell, let's say A1. Then use INDIRECT to reference any cell in your reference file. You may have to set up each link manually one last time, but then any time you update the date, the links will change to the new file.
    Please Login or Register  to view this content.
    The example refers to Sheet1!C9 in the reference file. Of course, you need to have the exact same format for your reference files ...

  3. #3
    Registered User
    Join Date
    05-07-2011
    Location
    oh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: Linking Excel Workbook

    Thanks Bentleybob for your feedback.

    I was further researching this on the web and I came across a video by Mr. Excel discussing the same issue i raised here. Link: http://www.youtube.com/watch?v=crbGfqEorXQ

    I tried to recreate the file as it applies to me but the end result is still giving me a #ref! error message. Attached are the files I am testing this formula on. I downloaded the PULL function and added it to the VBA module. Link :http://groups.google.com/group/micro...49f6c074a3adfd

    The file labeled "050911 combined...xlsx" is the source file and the "summary" file is the destination file where the formula will be stored.

    I hope you can help me on this.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Linking Excel Workbook

    Put the following in I2 and copy across and down:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-07-2011
    Location
    oh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: Linking Excel Workbook

    This is great BentleyBob! Thank you so much. Is there a way to make this formula return the data from the source file without opening it?

  6. #6
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Linking Excel Workbook

    Unfortunately, no, INDIRECT is a volatile function. But you can load up the file and then immediately close it. You can even have VBA code that opens and closes the file so you don't have to.

  7. #7
    Registered User
    Join Date
    05-07-2011
    Location
    oh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: Linking Excel Workbook

    Hello BentelyBob,

    I was able to take the HLOOKUP formula (without INDIRECT) and incorported it with PULL function to grab the values from a closed workbook!

    Here is the formula I used:

    Please Login or Register  to view this content.
    I would not have done this without your help, so thank you so much!

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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