+ Reply to Thread
Results 1 to 5 of 5

Array constants in a nested VLOOKUP

  1. #1
    Registered User
    Join Date
    08-07-2015
    Location
    Winter Garden FL
    MS-Off Ver
    Mac 2016
    Posts
    5

    Array constants in a nested VLOOKUP

    Hello there... I have a VLOOKUP formula that needs to have a nested VLOOKUP in it using an array constant. The issue is the nested VLOOKUP needs to return a name range so that the main VLOOKUP can use that name range to complete the search. Here is the nested formal by it self =VLOOKUP(H19,DesOne,2,0) and here is the nested =VLOOKUP(G18,VLOOKUP(G18,TestTwo,2,0),2,0) The TestTwo is the array and I need it to kick back DesOne like the 1st formula but what is coming back is "DesOne" so the VLOOKUP search will not work cause of the quotes. How do I get rid of the quotes so that it may come back as DesOne to complete the lookup. Hope this makes sense.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Array constants in a nested VLOOKUP

    Hey soneaf,

    Swirling in my head is the need for an "INDIRECT()" somewhere in your formula. Perhaps

    =VLOOKUP(G18,Indirect(VLOOKUP(G18,TestTwo,2,0)),2,0)

    Give that a try....
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-07-2015
    Location
    Winter Garden FL
    MS-Off Ver
    Mac 2016
    Posts
    5

    Re: Array constants in a nested VLOOKUP

    Thanks for the reply ..I tried that and I think it is kicking back the same issue. I took some screen shots to show what is going on. The name range is TestSeven cause I have tried many things ha. In the "Excel_1.jpg", you will see the return of the single VLOOKUP showing the columns B:C without quotes, as it should. I left the Formula Builder up as well so you can see what is going on behind the scenes. In "Excel_2.jpg" you can see the same formula now nested in a VLOOKUP and as you can see there is a value error, the last "Excel_3.jpg"
    shows what excel is kicking back for the nested VLOOKUP. I highlighted the nested formula and hit F9 to show the result and as you can see it has quotes. The quotes are messing up
    the lookup and that is what I am trying to get rid of. I have tried both just an enter after I put in the formula and also a Shift+commamnd+Enter ( being on a mac ) both return the same error. Any feedback would be great!
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    08-07-2015
    Location
    Winter Garden FL
    MS-Off Ver
    Mac 2016
    Posts
    5

    Re: Array constants in a nested VLOOKUP

    I got it ! Your indirect worked.. I just needed to get rid of the nested VLOOKUP. Thank for getting me on the right track. All is working the way I would like. Thanks !!!

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Array constants in a nested VLOOKUP

    I'm so glad you got an answer, so I didn't have to understand your post with all the colors.

+ 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: 1
    Last Post: 06-23-2011, 03:28 AM
  2. Dynamic array constants
    By michalrosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2010, 04:01 AM
  3. Using array constants in user-defined excel vba function
    By MiloMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2009, 08:45 PM
  4. Converting weeknumber formula to VBA (array constants)
    By opopanax666 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2008, 06:23 PM
  5. Formula Array Constants, Problem
    By pegbol in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2005, 02:45 PM
  6. [SOLVED] Declaring array constants at module level
    By Microsoft Forum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2005, 03:06 PM
  7. Nested If/Then/Vlookup on an array
    By wizhat in forum Excel General
    Replies: 0
    Last Post: 01-12-2005, 09:29 AM

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