FormulaCraft

IFERROR vs IFNA: which to use in Excel and Sheets

Excel & Google Sheets
=IFERROR(VLOOKUP(A2,B2:B6,1,FALSE),"Not found")

Verified example

Computed by a real spreadsheet engine on the sample data below.

LookupSource
AliceAlice
BobCarol
ZaraBob
CarolDavid
DavidEve

=IFERROR(VLOOKUP(A2,B2:B6,1,FALSE),"Not found")Not found

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Use IFERROR when you want to suppress any error and replace it with a friendly message: =IFERROR(formula, "fallback").
  2. 2Use IFNA when your formula should only hide #N/A (the 'not found' result from lookups): =IFNA(VLOOKUP(A2,range,col,FALSE),"Not found").
  3. 3Prefer IFNA in lookup formulas so that real errors like #REF! or #VALUE! still surface and can be debugged.
  4. 4Nest IFNA inside IFERROR only when you need different messages for #N/A vs other errors: =IFERROR(IFNA(formula,"Not found"),"Formula error").

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Is IFNA available in all Excel versions?

IFNA was introduced in Excel 2013. It is also available in all versions of Google Sheets.

Can I use IFERROR and IFNA together?

Yes — wrap IFNA inside IFERROR to return one message for #N/A and a different message for all other errors.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: