+ Reply to Thread
Results 1 to 3 of 3

Thread: vlookup dynamic reference

  1. #1
    Registered User
    Join Date
    02-26-2008
    Posts
    3

    vlookup dynamic reference

    I am attempting to do a dynamic lookup reference for a worksheet name in a vlookup.

    =IF($C8="","",VLOOKUP($C8,WK2!$C6:$H63,5,FALSE))

    where WK2 reference for the worksheet name is obtained from a cell reference say G6 ("WK2" value) or G8 ("WK3" value). The reference cells are on the same sheet as the formula above.

    Thanks

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,953
    Hi tknutsen,

    Try:
    =IF($C8="","",VLOOKUP($C8,INDIRECT(G6&"!$C$6:$H$63"),5,FALSE))

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566
    Quote Originally Posted by tknutsen
    I am attempting to do a dynamic lookup reference for a worksheet name in a vlookup.

    =IF($C8="","",VLOOKUP($C8,WK2!$C6:$H63,5,FALSE))

    where WK2 reference for the worksheet name is obtained from a cell reference say G6 ("WK2" value) or G8 ("WK3" value). The reference cells are on the same sheet as the formula above.

    Thanks
    =IF($C8="","",VLOOKUP($C8,INDIRECT(G6&"!$C6:$H63"),5,FALSE))
    HTH

+ 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.2.0