+ Reply to Thread
Results 1 to 6 of 6

How to remove #n/a error in excel vlookup b/c value is not found?

  1. #1
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Question How to remove #n/a error in excel vlookup b/c value is not found?

    Morning all,

    I have this formula; =VLOOKUP($A2,Name!$A:$C,2,FALSE) to join to spreadsheets, but in some cells I'm getting an #N/A error. Is there a way to remove or just return a blank cell?

    Many thanks

    Clash
    Last edited by Clash; 05-18-2011 at 05:33 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: How to remove #n/a error in excel vlookup b/c value is not found?

    =if(iserror(VLOOKUP($A2,Name!$A:$C,2,FALSE)),"",VLOOKUP($A2,Name!$A:$C,2,FALSE))

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: How to remove #n/a error in excel vlookup b/c value is not found?

    Or, in 2007:

    =IFERROR(VLOOKUP($A2,Name!$A:$C,2,FALSE),"")


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: How to remove #n/a error in excel vlookup b/c value is not found?

    Many thanks both,

    also can you please explain why, if there is no reference number i.e. lookup ID number 1, and it's not in the lookup field it returns a "0" and is there any way to also leave it blank?
    Last edited by Clash; 05-18-2011 at 05:04 AM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: How to remove #n/a error in excel vlookup b/c value is not found?

    It's finding a blank somewhere in column A and returning the corresponding value in column B. I'm assuming that's also blank otherwise a return of 0 is probably correct.

    I'd need to look at the workbook to be sure.

    Try:

    =IFERROR(VLOOKUP($A2,Name!$A:$C,2,FALSE)&"","")

    Regards

  6. #6
    Registered User
    Join Date
    09-03-2015
    Location
    London, England
    MS-Off Ver
    excel 2010
    Posts
    5

    Re: How to remove #n/a error in excel vlookup b/c value is not found?

    You can use:
    - ifna function for excel 2013
    - iferror function for excel 2007, 2010, 2013
    - if and isna functions for all excel vesion
    Please watch excel tutorial video How to remove #N/A in vlookup and replace #n/a with 0 or a blank cell
    https://www.youtube.com/watch?v=rInFQZsKLK0
    Last edited by john91; 09-10-2015 at 08:03 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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