Lookup with fallback
=IFERROR(VLOOKUP(A2, Products!A:C, 3, FALSE), "Unknown SKU") shows a label when the key is missing.
IFERROR wraps another formula and returns value_if_error when the inner expression hits any error, including #N/A, #REF!, #VALUE!, and #DIV/0!. Use it for polished dashboards. Fix the root cause when the error signals bad data you should clean.
Use IFERROR when lookups may miss, ratios may divide by zero, or imports may break mid-model and you want a friendly blank or message on a report tab.
Skip IFERROR as a blanket fix on every cell. It can hide fixable #VALUE! or #REF! bugs. For lookup #N/A only, IFNA is clearer and leaves other errors visible.
Wrap the risky formula as the first argument: IFERROR(VLOOKUP(...), "Not found").
Provide value_if_error: blank text "", zero, dash, or a short user-facing note.
IFERROR catches all error types, not just #N/A.
Place IFERROR on the outermost function when nesting several lookups.
Pair with data validation upstream so fewer errors reach the formula layer.
Log or flag repeated fallbacks on a QA tab instead of silently swallowing every failure.
=IFERROR(VLOOKUP(A2, Products!A:C, 3, FALSE), "Unknown SKU") shows a label when the key is missing.
=IFERROR(Clicks/Visits, "") leaves the cell blank when Visits is zero.
=IFERROR(IMPORTRANGE(Url!A1, "Data!A:Z"), "Check access") surfaces permission problems on a staging tab.
Build this without starting from a blank cell
Use a Better Sheets tool for IFERROR, then watch a walkthrough when you want the full pattern.
Watch how IFERROR works
Guides that explain IFERROR in more depth.
Most Common Errors and How To Handle Them in Google Sheets #N/A error #REF! error #NAME? error #DIV/0! Error #VALUE! Error #NUM! error #NULL! error
Read post →I've been doing a lot in spreadsheet automation using Apps Script. But I wanted to go back to some formulas that I think feel like magic. They make me feel like a wizard without having to code.
Read post →Building confidence in Google Sheets, and yourself is essential. It's benefits include: streamlining your workflow, ensuring data accuracy, and maximizing your productivity. If you’ve ever felt overwhelmed or unsure about using Google Sheets, this guide is here to help. Let’s explore some practical tips and strategies to boost your confidence and become a Google Sheets pro. I'll show you where you can find help inside and outside of Google Sheets. 👍Better Sheets Members can email me anytim...
Read post →IF evaluates a logical test and returns value_if_true when the test passes, otherwise value_if_false. It is the basic branching function for labels, safe division, and simple approvals before you reach for IFS or lookup tables.
Read guide →#N/A means not available: the formula ran but could not find a match. Lookup functions return #N/A when a key is missing from the table. Sometimes that is correct. Often it signals typos, extra spaces, or numbers stored as text.
Read guide →#REF! means a formula references a cell or range that no longer exists. Common causes include deleted rows or columns, removed sheets, broken IMPORTRANGE, or cut-paste that orphaned an address. The error spreads to every dependent formula until you repair the link.
Read guide →VLOOKUP searches the first column of a range for a key and returns a value from a specified column to the right. It is still everywhere in legacy templates even as XLOOKUP offers more flexible replacements.
Read guide →Done reading about IFERROR?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.