+ Reply to Thread
Results 1 to 3 of 3

Use Vlookup to insert a named range for the vlookup Table

  1. #1
    Registered User
    Join Date
    09-14-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Use Vlookup to insert a named range for the vlookup Table

    I've a series of 370 tables each with their own named range. I am want to have a nested vlookup, whereby the Table Array for the first Vlookup is determined by another lookup function.

    The data for the primary vlookup is set out as follows:

    Column A = Lookup Value
    Column B (not relevant)
    Column C = NamedRange Name of the Table array

    A Data Validation List box selects the "Lookup Value", from Column A, the Data Validation List box is located in a cell that I have renamed as a named range "LGA"

    Each of the named ranges for the 370 tables of data corresponds to the name included in Column C.

    The Vlookup I had envisaged when something like this:

    =Vlookup(LGA,Vlookup(LGA,A2:C372,3,False),2,False)


    If I take the second VLookup by itself, that is, Vlookup(LGA,AS:C372,3,False) the formula will work properly and return a value such as "Abcdefg".

    When I type the primary Vlookup as Vlookup(LGA,Abcdefg,2,False) it returns the result I expect it to (based upon the content of Named Range "Abcdefg").

    The objective is to make Vlookup dynamic, so that by simply changing the valued selected in the Data Validation List box (LGA), I can change the Table Array the Vlookup command inspects.

    Any thoughts?

    Michael

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,996

    Re: Use Vlookup to insert a named range for the vlookup Table

    Too many words!!

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use Vlookup to insert a named range for the vlookup Table

    Hello and welcome to the forum.

    If I am understanding you correctly, try this:

    =VLOOKUP(LGA,INDIRECT(VLOOKUP(LGA,A2:C372,3,FALSE)),2,FALSE)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Excel 2007 : Help- Vlookup with Named Range
    By sus1 in forum Excel General
    Replies: 8
    Last Post: 06-04-2012, 11:49 PM
  3. Vlookup with named range
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-23-2011, 02:36 PM
  4. Using Named range in a Vlookup
    By bernie.kruger in forum Excel General
    Replies: 7
    Last Post: 11-03-2010, 09:22 AM
  5. Using a named range in a vlookup
    By AnthonyWB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2010, 05:20 PM
  6. Named range in VBA Vlookup?
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-31-2007, 11:49 AM
  7. [SOLVED] vlookup-named range
    By [email protected] in forum Excel General
    Replies: 5
    Last Post: 06-15-2006, 03:00 PM
  8. Insert Vlookup into table_array of Vlookup with named range
    By Denise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2005, 07:06 PM

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.6.0 RC 1