AnalystPracticeGuides
DashboardSign up

IFERROR vs IFNA: which error handler to use

IFERROR replaces any error with a value you choose. IFNA replaces only #N/A, the error a lookup returns when it finds nothing. Use IFNA around lookups, so that real mistakes like #REF! or #VALUE! still show up.

Watch it solved. Mistake 7: hide #N/A safely with IFNA, from 5:01, in our video “VLOOKUP in Excel: 10 Common Mistakes and How to Fix Them”. Pressing play loads the video from YouTube (privacy). Open on YouTube

How do you write each one?

=IFERROR(B2/C2,0)
=IFNA(VLOOKUP(A2,E:F,2,FALSE),"Not found")

Why can IFERROR be dangerous?

Because it also hides errors you need to see. If someone deletes a column and the lookup turns into #REF!, IFERROR shows "Not found" or 0 and the report looks fine while it is wrong. IFNA only catches the case you expect.

When is IFERROR the right choice?

For division, where a zero divisor gives #DIV/0! and showing 0 or a blank is acceptable, and in quick one-off analyses. Even then, check the raw formula first so that you know which errors you are hiding.

Do you still need either with XLOOKUP?

Usually not. XLOOKUP has its own "if not found" argument: =XLOOKUP(A2,E:E,F:F,"Not found").

Which errors should you recognise?

ErrorUsual cause
#N/Avalue not found in a lookup
#DIV/0!division by zero or an empty cell
#VALUE!wrong type, such as text in a calculation
#REF!the formula points to a deleted cell
#NAME?misspelled function or text without quotes
Try it yourself. Practise this in a real spreadsheet in your browser, with instant feedback.
Practise IFERROR

Updated November 2026.

← All free guides