IFERROR vs IFNA
Updated · Works in: Excel 2013+, Microsoft 365, Google Sheets · Every example checked before release
Short answer
IFNA(value, value_if_na) catches only #N/A, the lookup's “not found”, so a broken formula still shows its error. IFERROR(value, value_if_error) hides every error. Use IFNA around lookups.
Use IFNA around lookups and IFERROR only when every error really means the same thing. IFNA (value, value_if_na) replaces #N/A, the “not found” result of a lookup, and lets every other error through. IFERROR (value, value_if_error) replaces any error, including the ones that mean your formula is broken.
| IFERROR | IFNA | |
|---|---|---|
| Catches | Every error (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, #NULL!) | Only #N/A |
| Typical use | A division that may hit 0, when 0 or blank is the right display | Lookups where “not found” is expected |
| Excel | Every current version | Excel 2013 and later |
| Google Sheets | Yes (second argument optional) | Yes |
The danger: IFERROR hides a broken formula
This lookup asks for column 5 of a 4-column table, so every row is really #REF!. Wrapped in IFERROR, every row says “Not found”, and nobody can tell that the formula itself is wrong. Microsoft's IFERROR page lists the errors it catches; #REF! is one of them.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | SKU | Qty | Stock | SKU | Product | Price | Stock | ||
| 2 | 2001 | PL-104 | 2 | Not found | PL-101 | Fern | $9.50 | 40 | ||
| 3 | 2002 | PT-210 | 1 | Not found | PL-104 | Monstera | $34.00 | 12 | ||
| 4 | 2003 | TL-301 | 3 | Not found | PL-107 | Snake plant | $22.00 | 25 | ||
| 5 | 2004 | PL-101 | 1 | Not found | PT-210 | Terracotta pot | $12.50 | 60 | ||
| 6 | 2005 | SL-401 | 4 | Not found | PT-212 | Ceramic pot | $19.00 | 18 | ||
| 7 | 2006 | PL-104 | 1 | Not found | TL-301 | Watering can | $18.00 | 9 | ||
| 8 | 2007 | PT-212 | 2 | Not found | SL-401 | Potting mix | $7.25 | 80 | ||
| 9 | 2008 | PL-107 | 1 | Not found |
IFNA keeps real errors visible
The same broken lookup inside IFNA shows #REF! on every row, which is what you want: it's telling you to fix the column number. With a correct column, IFNA shows “Not found” only for the SKU that really isn't in the price list (PL-999) and leaves everything else alone.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | SKU | Qty | Product | SKU | Product | Price | Stock | ||
| 2 | 2001 | PL-104 | 2 | Monstera | PL-101 | Fern | $9.50 | 40 | ||
| 3 | 2002 | PT-210 | 1 | Terracotta pot | PL-104 | Monstera | $34.00 | 12 | ||
| 4 | 2003 | TL-301 | 3 | Watering can | PL-107 | Snake plant | $22.00 | 25 | ||
| 5 | 2004 | PL-101 | 1 | Fern | PT-210 | Terracotta pot | $12.50 | 60 | ||
| 6 | 2005 | SL-401 | 4 | Potting mix | PT-212 | Ceramic pot | $19.00 | 18 | ||
| 7 | 2006 | PL-104 | 1 | Monstera | TL-301 | Watering can | $18.00 | 9 | ||
| 8 | 2007 | PT-212 | 2 | Ceramic pot | SL-401 | Potting mix | $7.25 | 80 | ||
| 9 | 2008 | PL-999 | 1 | Not found |
When IFERROR is the right tool
Some errors are expected and harmless: a conversion rate for a campaign with no clicks divides by zero. IFERROR(C2/B2, "") shows a blank instead. Even here, testing the cause is often clearer, IF(B2=0, "", C2/B2), because a typo would still show; the IFERROR guide compares both, and the #DIV/0! page has more.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Campaign | Clicks | Sales | Conversion | Owner |
| 2 | Spring email | 1200 | 36 | 3.0% | Mara |
| 3 | 860 | 12 | 1.4% | ||
| 4 | Display ads | 0 | 0 | Jonas | |
| 5 | Search ads | 2300 | 69 | 3.0% | Priya |
| 6 | Newsletter | 540 | 27 | 5.0% | |
| 7 | Partner blog | 0 | 0 | Kenji |
Which should a beginner learn first?
Learn both together, because the difference is the lesson. Default to IFNA around VLOOKUP, XLOOKUP and MATCH, and reach for IFERROR only when you can say which errors you expect and why hiding all of them is safe. In Excel 2021 or later and Google Sheets, XLOOKUP's own fourth argument replaces IFNA for lookups. For the whole lookup pattern step by step, with a worked example and the common mistakes, see how to use IFERROR with VLOOKUP.
Check yourself
One real exercise from the “Decisions” unit. Checked on our server; no account needed.Now the quick catch-all: show each campaign's conversion (Sales ÷ Clicks) in D2, or an empty cell ("") if the division fails, using IFERROR.
- Use IFERROR
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Campaign | Clicks | Sales | Conversion | Owner |
| 2 | Spring email | 1200 | 36 | Mara | |
| 3 | 860 | 12 | |||
| 4 | Display ads | 0 | 0 | Jonas | |
| 5 | Search ads | 2300 | 69 | Priya | |
| 6 | Newsletter | 540 | 27 | ||
| 7 | Partner blog | 0 | 0 | Kenji |
Common mistakes
Wrapping every lookup in IFERROR, which turns a wrong column number or a deleted range into a believable “Not found”.
Leaving out IFERROR's second argument in Excel, where it's required (Google Sheets allows it).
Hiding an error before finding out why it happens.
Questions
Does IFERROR catch #SPILL! and #CALC!?+
Microsoft's IFERROR page lists #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME? and #NULL!; #SPILL! and #CALC! aren't on the list.
Is IFNA in Google Sheets?+
Yes: IFNA(value, value_if_na), the same as Excel's.
Reading is step one. Now make it stick.
Practise it in a five-minute lesson on a live sheet, with instant feedback. No account needed for the free units.
Sources
Official documentation the facts on this page were checked against.