+ Reply to Thread
Results 1 to 5 of 5

Nested VLOOKUP returning #VALUE!

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Nested VLOOKUP returning #VALUE!

    Disaggregated each works fine; MATCH works, inner VLOOKUP with MATCH works, but when I incorporated the outer VLOOKUP I get the error. Have stared at this for hours and don't know what is wrong. Please help!

    =VLOOKUP(D9,VLOOKUP(A9,DataTable,MATCH("Health Plan",Data!$A$2:$BP$2,0),0),2,0)

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested VLOOKUP returning #VALUE!

    What is this actually returning?
    VLOOKUP(A9,DataTable,MATCH("Health Plan",Data!$A$2:$BP$2,0),0)
    You have that placed in the first vlookup where the LookupRange is supposed to go.

    So is the inside vlookup returning a range address string like "A1:B100" ?
    Or perhaps a Text String that represents a named range?

    You probably need Indirect

    =VLOOKUP(D9,INDIRECT(VLOOKUP(A9,DataTable,MATCH("Health Plan",Data!$A$2:$BP$2,0),0)),2,0)

  3. #3
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Nested VLOOKUP returning #VALUE!

    The out lookup needs to have a range of cells referenced and you have this instead but I could be wrong but those are my thoughts.

    Please Login or Register  to view this content.
    Thank those who have helped you by clicking the Star * below their name and please mark your post [SOLVED] if it has been answered satisfactorily.

  4. #4
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Nested VLOOKUP returning #VALUE!

    Why not use sumproduct if you need to match and lookup stuff with certain criteria's?

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Nested VLOOKUP returning #VALUE!

    =VLOOKUP(D9,VLOOKUP(A9,DataTable,MATCH("Health Plan",Data!$A$2:$BP$2,0),0),2,0)

    That second VLOOKUP will return a single value, when the first VLOOKUP is expecting a range.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  6. #6
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Nested VLOOKUP returning #VALUE!

    The Match returns this:
    53 =MATCH("Health Plan",Data!$A$2:$BP$2,0). Health Plan shows the employee's health plan choice (Individual or Family)

    The inner VLOOKUP returns this:
    Individual =VLOOKUP(A11,DataTable,MATCH("Health Plan",Data!$A$2:$BP$2,0),0). A11 has the employee name

    The outer VLOOKUP returns this:
    #VALUE! =VLOOKUP(D7,(VLOOKUP(A7,DataTable,MATCH(HealthPlan,Data!$A$2:$BP$2,0),0)),2). D7 is the employee's wage to be tested against either the Individual or Family table for the CoShare percentage the employee is required to pay.

    If I place Individual or Family in the outer VLOOKUP it works.

  7. #7
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Nested VLOOKUP returning #VALUE!

    The INDIRECT worked with a test formula. Now to apply the function to the actual workbook before checking this off as solved. Thanks.

+ 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. My nested formula is returning a #VALUE! error, and I'm not sure why.
    By zastoic in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-27-2013, 03:19 PM
  2. Nested IF returning FALSE value help
    By crash884 in forum Excel General
    Replies: 3
    Last Post: 08-13-2013, 01:31 PM
  3. Nested IF function returning N/A for some cells
    By leafs4life22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2013, 02:14 AM
  4. Nested IF Function Returning All Zero
    By lady_Jane in forum Excel General
    Replies: 2
    Last Post: 06-29-2011, 04:22 PM
  5. Returning text from nested IF and Vlookup statements
    By Patricia in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-28-2006, 11:25 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