+ Reply to Thread
Results 1 to 4 of 4

Vlookup and a named range as the table_array

  1. #1
    Registered User
    Join Date
    10-31-2019
    Location
    Orange County, CA
    MS-Off Ver
    Office 365
    Posts
    2

    Vlookup and a named range as the table_array

    Hello,

    I am trying to use VLOOPUP and I have several different conditions that will have several different possible table_arrays. To accomplish this, I am determining which table_array I need to use and I want to pass that into my VLOOKUP formula as a Defined Name. Is that possible?


    Please see attached.
    I6-I9 determine my criteria that will tell me which table_array I need to use.
    I pass that information over to AA11:AH12 and then combine it with CONCAT to yield the table_array defined name.

    In a perfect world I would like to know how to modify S12 from...
    =IF(OR(I6="Undecided",I7="Undecided",I8="Undecided",I9="Undecided"),"N/A",VLOOKUP(P12,HEIGHTSS,2,TRUE))
    to
    =IF(OR(I6="Undecided",I7="Undecided",I8="Undecided",I9="Undecided"),"N/A",VLOOKUP(P12,AH12,2,TRUE))
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Vlookup and a named range as the table_array

    Try it like this:

    =IF(OR(I6="Undecided",I7="Undecided",I8="Undecided",I9="Undecided"),"N/A",VLOOKUP(P12,INDIRECT(AH12),2,TRUE))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-31-2019
    Location
    Orange County, CA
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Vlookup and a named range as the table_array

    Fantastic. Thank you Sir.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Vlookup and a named range as the table_array

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. [SOLVED] VLOOKUP formula with a dynamic table_array range
    By mmogharreban in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2013, 10:34 PM
  2. dynamic range (table_array) in vlookup formule
    By cuoredicapitano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2010, 11:09 AM
  3. table_array:VLOOKUP help
    By gigiw1986 in forum Excel General
    Replies: 3
    Last Post: 08-28-2010, 02:22 PM
  4. Replies: 2
    Last Post: 09-28-2009, 05:43 PM
  5. Vlookup --> table_array with ranges
    By djstreet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2007, 01:30 PM
  6. Dynamic range for Table_array in a VLOOKUP.
    By DaveO in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-12-2005, 12:05 PM
  7. VLOOKUP TABLE_ARRAY
    By veljo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2005, 08:06 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