+ Reply to Thread
Results 1 to 9 of 9

N/A Error Using VLOOKUP even though there is match?

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    41

    N/A Error Using VLOOKUP even though there is match?

    Hi guys,

    Could someone look at my workbook and explain why I am getting N/A errors in sheet 1? Also, how can I fix this problem?

    For example, in sheet1, Cell B2 should equal 3. And it should stretch across the entire data range, so even something like B14 should return 3.

    Thanks.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: N/A Error Using VLOOKUP even though there is match?

    You cannot use VLOOKUP like that. The criteria column must be the 1st column ib the range, vlookup cannot (generally) look "backawrds".

    Try this instead...
    =IFERROR(INDEX(Sheet2!$A$2:$A$13,MATCH(Sheet1!A2,Sheet2!$B$2:$B$13,0)),"")
    copied down

    The IFERROR is to error-trap for those critera for which there is no match
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: N/A Error Using VLOOKUP even though there is match?

    try this

    Project ID
    100 3 =SUMPRODUCT(--(A2=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    200 5 =SUMPRODUCT(--(A3=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    300 7 =SUMPRODUCT(--(A4=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    400 4 =SUMPRODUCT(--(A5=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    500 8 =SUMPRODUCT(--(A6=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    500 8 =SUMPRODUCT(--(A7=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    600 9 =SUMPRODUCT(--(A8=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    600 9 =SUMPRODUCT(--(A9=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    700 1 =SUMPRODUCT(--(A10=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    700 1 =SUMPRODUCT(--(A11=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    700 1 =SUMPRODUCT(--(A12=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    15000 2 =SUMPRODUCT(--(A13=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)
    26 3 =SUMPRODUCT(--(A14=Sheet2!$B$2:$D$13)*Sheet2!$A$2:$A$13)

  4. #4
    Registered User
    Join Date
    12-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: N/A Error Using VLOOKUP even though there is match?

    What if I want it also to match from columns C and D in sheet 2? For example if the value is Project = 600, this should get ID = 9.

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: N/A Error Using VLOOKUP even though there is match?

    vogel997, the actual set I am working with has hundreds of thousands of rows. Excel might not have the resources for that.

  6. #6
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: N/A Error Using VLOOKUP even though there is match?

    Quote Originally Posted by chicity26 View Post
    vogel997, the actual set I am working with has hundreds of thousands of rows. Excel might not have the resources for that.
    Then try this

    =INDEX(Sheet2!A:A,IFERROR(MATCH(A2,Sheet2!$B:$B,0),IFERROR(MATCH(A2,Sheet2!C:C,0),MATCH(A2,Sheet2!D:D,0))),)

  7. #7
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: N/A Error Using VLOOKUP even though there is match?

    chicity26, Good evening.

    I did an example for you:
    24-07-2014_ExcelForum_Book1-OK.xlsx

    Is it what you want?
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: N/A Error Using VLOOKUP even though there is match?

    Try this...
    =INDEX(Sheet2!$A$2:$A$13,IFERROR(MATCH(Sheet1!A2,Sheet2!$B$2:$B$13,0),IFERROR(MATCH(Sheet1!A2,Sheet2!$C$2:$C$13,0),MATCH(Sheet1!A2,Sheet2!$D$2:$D$13,0))))

  9. #9
    Registered User
    Join Date
    12-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: N/A Error Using VLOOKUP even though there is match?

    FDibbins and vogel997, those formulas work well for the smaller set. But the actual set also has nearly 60 columns for Project categories. Inputting that into one function would be too much, I think.

+ 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 to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  2. [SOLVED] Index, Match not working. Can't even get Vlookup to work. Probably ID10T error.
    By Alias1431 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2013, 03:39 PM
  3. [SOLVED] if,match,vlookup error
    By jrobertson2403 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-03-2013, 03:13 AM
  4. Vlookup or offset/match formula error
    By adam2308 in forum Excel General
    Replies: 2
    Last Post: 04-16-2009, 03:38 PM
  5. Run Time Error for Vlookup & Match command
    By Syed Haider Ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2005, 02:05 PM

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