+ Reply to Thread
Results 1 to 2 of 2

cell value is the document name needed for vlookup

  1. #1
    Registered User
    Join Date
    02-08-2008
    Posts
    1

    cell value is the document name needed for vlookup

    Greetings,

    I'm trying to figure out if it's possible to create a vlookup formula that uses a cell's contents as the name of the document in the table array.

    Example:
    Cell A1 contains the text "mydocument.xls"
    Cell A2 has a value of 500
    Cell B2 has the formula: =VLOOKUP(A2,[mydocument.xls]Sheet1!$A:$B,2,FALSE)

    I want to replace "mydocument.xls" in the vlookup formula with a reference to the content of cell A1, so that if I change cell A1 to "myotherdocument.xls" the vlookup formula will then search in that named document instead.

    Is this possible?
    Thanks!
    -David

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Welcome to the forum, your in luck, your not the first to ask this question

    http://en.allexperts.com/q/Excel-105...l-lookup-1.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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