+ Reply to Thread
Results 1 to 3 of 3

Can I get rid of the #N/A that shows up if the argument is false in a vlookup?

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    Oregon
    Posts
    57

    Can I get rid of the #N/A that shows up if the argument is false in a vlookup?

    I am using this formula:

    =VLOOKUP(A2,'Database 1'!A:B,2,FALSE)

    What it is doing is checking to see if the number in cell A2 matches any of the numbers on another worksheet within the same workbook, and if so, displaying the text in that cell. If there are no matches, it displays #N/A. I would rather it be blank if possible. Any ideas?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Can I get rid of the #N/A that shows up if the argument is false in a vlookup?

    For Excel 2007 and beyond you can wrap your formula in an IFERROR to suppress error results.

    =IFERROR(VLOOKUP(A2,'Database 1'!A:B,2,FALSE), "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-04-2008
    Location
    Oregon
    Posts
    57

    Re: Can I get rid of the #N/A that shows up if the argument is false in a vlookup?

    That worked perfectly, Thank You

+ 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: 10
    Last Post: 12-04-2013, 04:10 AM
  2. [SOLVED] Function Argument box displays the correct formula result however the cell shows 0?
    By Lloydiesuk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2013, 04:01 AM
  3. Print preview shows FALSE in a combo box
    By Problem12 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2013, 10:57 AM
  4. [SOLVED] Shows empty cell instead of FALSE
    By Anka in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-20-2012, 03:24 PM
  5. [SOLVED] Same value but shows False
    By sumonrezadu in forum Excel General
    Replies: 16
    Last Post: 07-20-2012, 05:37 AM

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