The Smart Method Logo

Publishers of the world’s most comprehensive and up-to-date Excel tutorials

How to hide NA Errors in Excel

How to hide #N/A errors in Excel

What does the #N/A error code mean?

#N/A means “Not Available”. Excel formulas usually return this in situations where a requested value could not be found for some reason.

One of the most common causes of the #N/A error code is the VLOOKUP function. If a VLOOKUP function can’t find a matching value it will return #N/A.

If you’re unfamiliar with Excel formulas and functions you could benefit greatly from our completely free Basic Skills E-book.
All of Excel’s error codes are explained in depth in our Expert Skills Books and E-books.

Hiding #N/A codes

Here is an example:

Column C is using VLOOKUP to return prices from the table in columns F and G. In cell C6 the VLOOKUP function was unable to find a matching product so it returned a #N/A error.

In many cases this is what you would want to happen; if a price is missing it could be a genuine error that needs to be corrected. In some cases you might want to suppress the #N/A error. To do that, you’d use the IFERROR function.

IFERROR allows you to specify what should be returned if an error occurs. To replace any missing prices with zero, you could use this formula:


Surrounding the VLOOKUP formula with IFERROR lets you choose what will happen if an error is returned. In this case you’ve specified 0 when an error occurs, but you could make it display “Price Missing” with this formula:

=IFERROR(VLOOKUP(A6,$F$2:$G$4,2,FALSE),”Price Missing”)

IFERROR and VLOOKUP are explained in depth in our Expert Skills Books and E-books.

You can download an example workbook showing this formula in action.

Share this article

Share on facebook
Share on twitter
Share on linkedin
Share on stumbleupon
Share on email

Related Articles


Understand XLOOKUP (part two)

note In most cases, the binary search option is not useful The XLOOKUP function uses a sophisticated linear search method by default. It is my


Understand XLOOKUP (part one)

note XLOOKUP will not work in legacy Excel versions (Excel 2019 and earlier) The XLOOKUP function was added in the Jul 2020 semi-annual version 2002.

2 Responses

Leave a Reply

Your email address will not be published.

5 + eight =