+ Reply to Thread
Results 1 to 2 of 2

INDIRECT with VLOOKUP problem

  1. #1
    Registered User
    Join Date
    01-15-2008
    Posts
    1

    INDIRECT with VLOOKUP problem

    Say i open a new workbook, and in Sheet1
    in A1 i put "Sheet2"
    in B1 i put "5"
    in C1 i put =INDIRECT("'"&$A$1&"'!A1")
    in D1 i put =VLOOKUP(A2,B1:C1,2,FALSE)
    in A2 i put "Apple"

    on Sheet2 in A1 i simply put "Apple"

    i get #N/A for my VLOOKUP
    so is there any way to VLOOKUP looking for values obtained through INDIRECT?

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Following from your data description but in Apple, Orange, Pear into sheet2!A1:A3 and 5,3,1 in sheet2!B1:B3.

    Then:
    sheet1!D1: =VLOOKUP(A2,INDIRECT("'"&A1&"'!A1:B3"),2,FALSE)

    Your lookup range in your original function did not contain apple in the first column.


    rylo

+ 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