+ Reply to Thread
Results 1 to 3 of 3

VLookup using cell value to reference an external sheet

  1. #1
    Registered User
    Join Date
    03-31-2014
    Location
    Melbourne
    MS-Off Ver
    Excel 2012
    Posts
    2

    VLookup using cell value to reference an external sheet

    Hello

    Using the following formula
    =IF(E35="","",VLOOKUP(E35,'S:\PB\[2014-04-01-InternalCatalog.xlsx]Catalog'!$A$2:$H$1000,2,FALSE))
    Works but is very inflexible

    I would like to change the date leader in the external sheet filename to a cell value something along the lines of this
    =IF(E35="","",VLOOKUP(E35,'S:\PB\[$A$1-InternalCatalog.xlsx]Catalog'!$A$2:$H$1000,2,FALSE))
    but no amount of tweaking seems to get it to work.

    Any suggestions to get this to work would be awesome.

  2. #2
    Registered User
    Join Date
    03-30-2014
    Location
    Suzhou,China
    MS-Off Ver
    Excel 2003
    Posts
    41
    hi,
    you can use function "indirect" like this:

    =IF(E35="","",VLOOKUP(E35,indirect("'S:\PB\["&$A$1&"-InternalCatalog.xlsx]Catalog'!$A$2:$H$1000"),2,FALSE))

    but it can only work when you open the external sheet.
    Welcome to China,Welcome to Suzhou...And,我是来学英文的。

  3. #3
    Registered User
    Join Date
    03-31-2014
    Location
    Melbourne
    MS-Off Ver
    Excel 2012
    Posts
    2

    Re: VLookup using cell value to reference an external sheet

    Opening the external sheet isn't really an option.
    The beauty of VLookup is that it works regardless of whether the sheet is open or not.
    I was hoping to find a way to reference the current sheet using a cell value to make updating easier and less prone to mistakes.
    Indirect works well if the referenced sheet is already open. I only want the active workbook open and not additional ones.

+ 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. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  2. Using a cell reference of a sheet in Vlookup
    By crazybass2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 05:05 PM
  3. Using a cell reference of a sheet in Vlookup
    By crazybass2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 PM
  4. [SOLVED] Using a cell reference of a sheet in Vlookup
    By crazybass2 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Using a cell reference of a sheet in Vlookup
    By crazybass2 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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