Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Indiana
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Vlookup and Named Table (2000, 2002)

    I would like to create a formula that will use the vlookup to locate a value. Here's my problem. I would like the user to enter a town in a cell. The name of the town is a named range on another workbook. Normally I would write the formula like this:
    =vlookup(A3,'c:testsheet.xls'!townname,2)
    I would like the user to enter in cell A1 the town name and have it change the reference in the formula.
    I tried to concatinate the formula like this, but got an error. =vlookup(A3,'C:testsheet.xls'! & A1,2)

    All help would be appreciated.

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Vlookup and Named Table (2000, 2002)

    Try:

    <pre>=vlookup(A3,'C:testsheet.xls!'&A1,2)
    </pre>

    Legare Coleman

  3. #3
    Lounger
    Join Date
    Oct 2001
    Location
    Isleworth, Gtr London, England
    Posts
    28
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Vlookup and Named Table (2000, 2002)

    What you need is :
    =VLOOKUP(A3,INDIRECT("testsheet.xls!"&A1),2)

    but the disadvantage is that it will only work when testsheet.xls is open.

    Glenn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •