• Vlookup and Named Table (2000, 2002)

    Author
    Topic
    #370914

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #588140

      Try:

      =vlookup(A3,'C:testsheet.xls!'&A1,2)
      
    • #588197

      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.

    Viewing 1 reply thread
    Reply To: Vlookup and Named Table (2000, 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: