Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2010
    Location
    98281
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    LOOKUP into variable sheet name

    LOOKUP into variable sheet name

    Need help w/ lookup formula variable referencing list of worksheet names.

    =CONCATENATE(A1,"!","a:b") produces Sheet1!a:b
    but inside =VLOOKUP(C5,CONCATENATE(A1,"!","a:b"),2,0) it becomes =VLOOKUP(C5,"Sheet1!a:b",2,0) resulting in #VALUE error

    Sheet1
    Sheet2
    .
    .
    Sheet30

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    You need to convert the text to a range:
    =VLOOKUP(C5,indirect(CONCATENATE(A1,"!","a:b")),2,0)

    Steve

  3. #3
    New Lounger
    Join Date
    Nov 2010
    Location
    98281
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perfect! Thanks, Steve.

Posting Permissions

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