+ Reply to Thread
Results 1 to 5 of 5

Vlookup, using a cell that contains the table reference

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Vlookup, using a cell that contains the table reference

    Hello,

    Thanks for taking your time at looking at this post.

    I have a worksheet that uses a lot of vlookups and I have to update the filenames and locations quite often. I would like to update a single cell rather than updating every single formula.

    However I am getting the #VALUE error when trying this.

    Simplified Example:
    I have: =VLOOKUP(A3,[Table.xls]Sheet1!$A$1:$B$4,2,FALSE)
    I would like to place [Table.xls]Sheet1!$A$1:$B$4 into a cell (D1) for example.

    And have my vlookup function as =VLOOKUP(A3,$D$1,2,FALSE)
    This way I only have to update D1 when I want to change the filename instead of a whole lot of functions.

    Any help would be appreciated, Thanks!!

    Adam
    Last edited by AdamParker; 12-12-2008 at 06:29 PM. Reason: Solved.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You want the INDIRECT function.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-12-2008 at 06:29 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Duplicate. Sorry.

  4. #4
    Registered User
    Join Date
    08-07-2014
    Location
    michigan
    MS-Off Ver
    2013
    Posts
    5

    Re: Vlookup, using a cell that contains the table reference

    Did u able to get answer to your thread...I am struggling for the same thing. Your help would be appreciated.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup, using a cell that contains the table reference

    Yes, the indirect() solution was given in post #2. If you cannot adapt that (read up INDIRECT() in the Excel F1 Help files), then start a thread of your own and provide a sample workbook so someone can help you directly. Thanks.

+ 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