How to iferror suppress errors in Excel
Replace
Step-by-step instructions
How to iferror suppress errors — 3 steps
Wrap the formula that might produce an error as the first argument of IFERROR.
Enter the value to display when an error occurs as the second argument.
Use an empty string "" for a blank result, a dash "-" for a visual placeholder, or 0 for numeric continuity.
Example data
Worked example
| Lookup ID | Result |
|---|---|
| A-100 | East |
| A-999 | - |
| A-101 | West |
Common mistakes
Errors to watch out for
IFERROR hides real bugs
IFERROR catches all errors including formula mistakes. Use it only once the underlying formula is verified correct — otherwise you risk hiding logic errors silently.
Using IFERROR around VLOOKUP for missing lookups
This is the most common use case and is correct. For XLOOKUP, use the built-in fourth argument instead — XLOOKUP(A2,range,result,"Not found").
FAQ
Frequently asked questions
What is the difference between IFERROR and IFNA?
IFNA catches only #N/A errors. IFERROR catches all error types. Use IFNA when you want other errors (like #VALUE or #REF) to surface as real alerts.
Describe your exact spreadsheet problem — get the formula in seconds.
Open AI Formula Generator — FreeRelated how-to guides