+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : refrencing another excel file that changes names daily

  1. #1
    Registered User
    Join Date
    02-06-2012
    Location
    portland or
    MS-Off Ver
    Excel 2007
    Posts
    1

    refrencing another excel file that changes names daily

    I have a simple vlookup formula refrencing the array from a different excel file on a server, but the name of this file changes daily with the date in the name. can I have my file use a local cell to update the name of the reference file on the server:

    For example "Book2.xlsx" would be the server path, but this name changes every morning:
    =VLOOKUP(H2,[Book2.xlsx]Sheet1!$A:$B,2,FALSE)

    can I do something like this where cell N2 contains the path to the array ([Book2.xlsx]Sheet1!$A:$B) so the formula will update automatically?
    =VLOOKUP(H1,N2,2,FALSE)

    Or something like this and have just the path (Book2.xlsx) in N2:
    =VLOOKUP(H1,"["&N2&"]Sheet1!$A:$B",2,FALSE)

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: refrencing another excel file that changes names daily

    You are right on track, but you just missed a small function -
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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