Menu

IFERROR vs IFNA in Google Sheets: hide #N/A without hiding #REF! and #DIV/0!
📰

IFERROR vs IFNA in Google Sheets: hide #N/A without hiding #REF! and #DIV/0!

DEV Community: productivity·SheetError·10 days ago
#I2eGTtd1
#devtoproductivity#devto#dev#ref#div
Long article (725 words) — no AI summary yet.
Reading 0:00
15s threshold

A lookup miss is #N/A . A deleted reference is #REF! . A zero divisor is #DIV/0! . IFERROR treats those as the same blank. IFNA does not. If you wrap first and read later, a broken index looks like “not found.”

Why it happens

IFERROR(value, fallback) replaces any error with the fallback: #N/A , #REF! , #DIV/0! , #VALUE! , #NAME? , #NUM! , and a parse #ERROR! .

IFNA(value, fallback) replaces only #N/A . Every other error stays in the cell.

A dashboard that should say “no sku” used IFERROR and now also says “no sku” when someone deletes a column, types VLOKUP , or divides by a blank. That is the bug this comparison exists for.

Reproduce it in a minute

Open a blank spreadsheet. In A1 type sku , B1 name . A2 101 , B2 Widget . D1 lookup . D2 999 — that sku is not in column A.

A real miss. In E2 enter:

=VLOOKUP(D2,A2:B2,2,FALSE)

Enter fullscreen mode

Exit fullscreen mode

E2 shows #N/A . The tooltip is Did not find value '999' in VLOOKUP evaluation. Leave E2 broken.

A bad index, not a miss.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.