+ Reply to Thread
Results 1 to 5 of 5

I need to get Rid of #N/A

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    AUstin, Texas
    MS-Off Ver
    Excel 07
    Posts
    5

    I need to get Rid of #N/A

    I need to come up with a formula that will use vlookup if the cell contains data, if not leave the cell blank. I also need it to use vlookup but if it does not find a match, output the contents of the original cell. Can it even be done?

  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,724

    Re: I need to get Rid of #N/A

    If you put a formula in the cell it will overwrite the original contents, so how do you expect to get that back?

    You can avoid the #N/A error in XL2007 by using this:

    =IFERROR( your_vlookup_formula, "")

    Add the items in red around your existing formula.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: I need to get Rid of #N/A

    As an example...

    =IF(A1<>"",IFERROR(VLOOKUP(A1,$E$1:$F$20,2,0),A1),"")
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: I need to get Rid of #N/A

    can you post an example? Basically, you'll want an iferror statement to get tird of the #N/A and an if statement to see if a match is made.

  5. #5
    Registered User
    Join Date
    11-30-2012
    Location
    AUstin, Texas
    MS-Off Ver
    Excel 07
    Posts
    5

    Re: I need to get Rid of #N/A

    Jeffrey that worked perfectly, thanks for your help!

+ 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