+ Reply to Thread
Results 1 to 4 of 4

vlookup to a dynamic file name referenced in another cell

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    3

    vlookup to a dynamic file name referenced in another cell

    I would like to Vlookup to an excel file which is referenced in another cell so that I can change the file name in one cell and all the Vlookups that reference that cell will change accordingly.

    So far I have only been able to achieve this by using the indirect function. However, this has the limitation that the other file must be open which makes the solution insufficient.

    What I have using Indirect is:

    =VLOOKUP($B13,INDIRECT($S$8&"!$A$14:$O$75"),4,FALSE)

    .. where S8 contains the file name for which I would like to be able to modify the date from time to time:

    [C:\filelocation\Template 9.30.11.xlsx]


    If someone has a way to do this other than with the Indirect function so that the file does not need to be open to fully function it would be greatly appreciated.

    Regards,
    Chris

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: vlookup to a dynamic file name referenced in another cell

    You can install a free addin from here: Morefunc and use INDIRECT.EXT instead of INDIRECT...

    There are not many other ways except some complex VBA:

    Check here for more info...

    http://www.contextures.com/xlFunctions05.html
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-10-2011
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vlookup to a dynamic file name referenced in another cell

    Thanks for your help NBVC. However, it seems this toolpack is available for excel 2010. Is there a way to get the INDIRECT.EXT function for Excel 2010?

    Thanks again

  4. #4
    Registered User
    Join Date
    11-10-2011
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vlookup to a dynamic file name referenced in another cell

    Actually the add-on would probably be needed on everyone's PC who uses the spreadsheet, so that might not work. I guess I might have to learn the VB stuff.

+ 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