Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Creating a range name from cell values

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    OK.. here's today challenge!

    I need to use the value in cell A1 (which is an employee number) concantanate a "_" to the beginning to get _EMPNUM (_55555) and then pass this as the range name in a VLOOKUP.... is this possible?

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,657
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-05-03 10:23, Troy Boy wrote:
    OK.. here's today challenge!

    I need to use the value in cell A1 (which is an employee number) concantanate a "_" to the beginning to get _EMPNUM (_55555) and then pass this as the range name in a VLOOKUP.... is this possible?
    Yes, if the corresponding name is already defined/assigned to the relevant range. the syntax would be:

    =VLOOKUP(lookup-value,INDIRECT("_"&A1),...)

    The result of "_"&A1 must, as I said, must exit as name in the workbook.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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