+ Reply to Thread
Results 1 to 3 of 3

Thread: Need to reference different concatenated range names in a LOOKUP formula

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need to reference different concatenated range names in a LOOKUP formula

    I want to create a series of VLOOKUP commands with different lookup tables whose names are concatenated from two different pieces. Here's what I'm trying to do:

    VLOOKUP(x,LUTWK01,y,false)
    VLOOKUP(x,LUTWK02,y,false)
    VLOOKUP(x,LUTWK03,y,false)

    LUTWK01, etc., are named ranges. I have the text "WK01", "WK02", "WK03" stored in other places, and would like to be able to concatenate "LUT" and the particular week (e.g., "WK01").

    The formula that I've created, which isn't working is:

    VLOOKUP(x,CONCATENATE("LUT",A1),y, false) where cell A1=WK01.

    When I pull out just the CONCATENATE portion, it resolves to LUTWK01, but apparently this is not recognized as a range name. Any idea as to how I make the VLOOKUP formula recognize a concatenated range name? Or is there a better way to do this?

    Thanks.
    Last edited by TomCharles; 04-02-2009 at 12:24 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Need to reference different concatenated range names in a LOOKUP formula

    Try:

    =VLOOKUP(x,Indirect("LUT"&A1),y, false)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    04-02-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: Need to reference different concatenated range names in a LOOKUP formula

    The "INDIRECT" command worked. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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