+ Reply to Thread
Results 1 to 3 of 3

help defining the array table by formula in vlookup funkcion

  1. #1
    Registered User
    Join Date
    10-09-2011
    Location
    Kosice, Slovakia
    MS-Off Ver
    office 365 / excel 2021
    Posts
    20

    help defining the array table by formula in vlookup funkcion

    Dear friends,

    I would like to ask you for help. I need you help regarding the use of name (range) in vlookup function.
    I have enclosed the sheet which can help to explain my problem. I tried to make it as simply as possible. (I apologize but my English is not very good and I am not sure if I can correctly explain what I really want)
    1. I have defined 3 names - " PIT, ELT, RET" , each representing the table, where first column is certain DN and second responsible value HM for certain DN. Each table must be in the different sheet. These names define the table arrays I need to use in my vlookup formula.
    2. I have defined one more name - range TABLENAMES, it is table where first column is certain code and second column is name of table where to look for value for certain code.

    3. IN RAW 8 I want to use the vlookup function to define the table array for other vlookup function =VLOOKUP(B8;VLOOKUP(A8;TABLENAME;2;FALSE);2;FALSE). I need to get the correct value HM for corresponding DN according the code eg. A8=EL.
    Problem is that if i try to define the table array in vlookup function by other function (vlookup) does not work. Strange is that other part of vlookup function E.G. col index num can be define by any function even vlookup eg =VLOOKUP(B8;ELT;VLOOOKUP(A8;TABLENAME;2;FALSE);2;FALSE) - raw 9

    Can anybody answer if it is possible to define the table array in vlookup function by other function?

    I know it sound very complicated but I hope somebody can understand and help. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: help defining the array table by formula in vlookup funkcion

    Hi
    In cell D8, try using the INDIRECT function as in the following example:

    =VLOOKUP(B8,INDIRECT(VLOOKUP(A8,TABLENAME,2,FALSE)),2,FALSE)

    The INDIRECT function takes a text string and reads it as a reference.

  3. #3
    Registered User
    Join Date
    10-09-2011
    Location
    Slovakia , košice
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: help defining the array table by formula in vlookup funkcion

    Quote Originally Posted by DBY View Post
    Hi
    In cell D8, try using the INDIRECT function as in the following example:

    =VLOOKUP(B8,INDIRECT(VLOOKUP(A8,TABLENAME,2,FALSE)),2,FALSE)

    The INDIRECT function takes a text string and reads it as a reference.
    Dear friend,

    I would like to thank you, it works perfectly. It changes everything for me. You saved me a lot of time i had to spend crating complicated IF formulas. God bless you. Thanks.

+ 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