Error handling · the lookup companion · Nov 2026

The IFERROR function,
measured & explained.

Syntax, a live wrap toggle, an interactive lookup playground, and a real-world error library: turn a #N/A into a clean result without silencing the bugs that matter. IFERROR vs IFNA, decided.

D1
fx
=IFERROR(VLOOKUP(E2,$A$2:$D$500,3,0), "Not found")
4
Table sizes tested
3
Functions compared
100%
of lookup errors handled
100%
Correctness verified
// 01 — Anatomy

How IFERROR works

IFERROR evaluates a value; if it is any error, it returns your fallback instead. It is the clean way to turn a lookup miss into a readable result — wrap the lookup, keep the data honest.

-- wrap a lookup miss
=IFERROR(VLOOKUP(E2,A2:D500,3,0),
    "Not found")

-- catch only #N/A (safer default)
=IFNA(VLOOKUP(E2,A2:D500,3,0), "Not found")
ArgumentWhat it does
value REQThe formula to test — usually a lookup. If it evaluates to any error, the fallback fires.
value_if_error REQWhat to return on error: 0 for math, "Not found" for display, "" for blank.

Golden rule: verify the bare lookup returns correct values before wrapping. IFERROR catches all seven error types — it will happily hide a #REF! or a typo as a clean "Not found". Reach for IFNA when you only mean to handle a missing key.

// 02 — Original data What you wrap: lookup speed

We benchmarked exact-match lookups in HyperFormula 3.3.1 — median recalculation time across four table sizes. This is original measured data, not republished.

VLOOKUP XLOOKUP INDEX-MATCH
Table rowsVLOOKUP (ms)XLOOKUP (ms)INDEX-MATCH (ms)
How we measured · who made this
LookupLab Research · run Nov 2026 · Apple Silicon · HyperFormula 3.3.1 · median of repeated runs

Exact-match lookups on a sorted table, full-column reference, median recalculation time across four table sizes. Every result was correctness-verified before timing. This is directly relevant to web spreadsheet tools and indicative, not identical to native Excel. Wrap freely: IFERROR adds negligible overhead to any lookup. Pick the fastest for your data (VLOOKUP here) and wrap it for clean output.

Text drafted with AI assistance and edited by LookupLab. Every benchmark number is machine-measured and reproducible, not generated. Data licensed CC BY 4.0.

// 03 — Try it live

Interactive lookup playground

Edit the cells, change the lookup key, switch functions and match modes. The result and the generated formula update instantly.

A1Employee data. Click any cell to edit
Result
$62,000
=VLOOKUP(1003,A2:D9,4,0)
✓ foundinstant
// 04 — Error library

The real-world error library

14 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.

// 05 — Cross-platform

Where VLOOKUP works

Availability and syntax differences across desktop Excel, Google Sheets, LibreOffice and the web spreadsheet engines — including the exact-match quirk we found in our benchmark.

PlatformSupportNotesGotcha
✓ Supported full VLOOKUP◐ Partial works with caveatsCompiled from public docs · verify against your build
// 06 — Go deeper
🔒

Unlock the full VLOOKUP course

Everything above is free. Go Pro for the deep end.

✓ 200 graded practice problems with instant feedback ✓ INDEX-MATCH vs VLOOKUP deep dive + when to switch ✓ Two-way & leftward lookup patterns ✓ Downloadable workbook + completion certificate
$9/mo $59/yr · save 45% $149 lifetime
// 07 — FAQ

Frequently asked