+ Reply to Thread
Results 1 to 4 of 4

Reference External Workbook Using Cell Text

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Reference External Workbook Using Cell Text

    I have a worksheet with a vlookup formula in cell F5 that references an external woorkbook as follows :

    =VLOOKUP(E5,'C:\Users\Desktop\[2.xlsx]Sheet1'!$F$7:$G$10,2,FALSE)

    As you will notice, this formula references an external workbook called 2.xlsx
    However, instead of referencing 2.xlsx, I want it to reference the file name that is in cell D5. For example, if I type 7 in cell D5, then it will perform the vlookup on the file named 7.xlsx.

    Hope this is clear and thanks for the assistance !

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Reference External Workbook Using Cell Text

    The following should work for you.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    7.xlsx will of course need to be open.

  3. #3
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Re: Reference External Workbook Using Cell Text

    Thanks very much for the reply that works, however is there a way that this can be done without opening the other file (7.xlsx), as this can be done with a normal vlookup ?

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Reference External Workbook Using Cell Text

    Unfortunately the file needs to be open otherwise Excel has no way to get the data from the file.

+ 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. [SOLVED] same external cell reference to workbook
    By kriminaal in forum Excel General
    Replies: 8
    Last Post: 07-04-2018, 07:58 AM
  2. Reference External Cell Using Text with File Location
    By JonnFive in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2016, 08:48 PM
  3. External Workbook Link with Dynamic Cell Reference
    By mst3kr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2014, 10:24 PM
  4. Replies: 4
    Last Post: 12-01-2013, 03:22 AM
  5. [SOLVED] Writing cell reference to external workbook with VBA
    By knutfh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2013, 06:58 AM
  6. Replies: 2
    Last Post: 06-19-2012, 12:48 PM
  7. Replies: 2
    Last Post: 05-01-2009, 07:06 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