FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to iferror suppress errors in Excel

Replace

beginnerData CleaningIFERROR reference

Step-by-step instructions

How to iferror suppress errors3 steps

1

Wrap the formula that might produce an error as the first argument of IFERROR.

2

Enter the value to display when an error occurs as the second argument.

3

Use an empty string "" for a blank result, a dash "-" for a visual placeholder, or 0 for numeric continuity.

Example data

Worked example

Lookup IDResult
A-100East
A-999-
A-101West

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.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.