0
0
Excelspreadsheet~5 mins

IFERROR for error handling in Excel - Step-by-Step Guide

Choose your learning style9 modes available
Introduction
IFERROR helps you catch mistakes in formulas and show a friendly message or value instead of an error. It makes your spreadsheet look clean and easier to understand when something goes wrong.
When dividing numbers and you want to avoid showing a division by zero error.
When looking up data that might not exist and you want to show a message like 'Not found'.
When calculating with data that might be missing or incomplete and you want to show zero or blank instead of an error.
When you want to keep your report tidy by replacing errors with a simple text or number.
When you want to avoid breaking other formulas that depend on your calculation.
Steps
Step 1: Click
- the cell where you want the result
The cell is selected and ready for typing
Step 2: Type
- the formula bar
You start entering the IFERROR formula
💡 Start with =IFERROR(
Step 3: Enter
- inside the IFERROR parentheses, type the formula you want to check for errors
The formula to check is inside IFERROR, for example: A2/B2
Step 4: Type
- after a comma inside IFERROR
You add the value or message to show if there is an error, for example: "Error" or 0
Step 5: Close
- the parentheses of IFERROR
The formula looks like =IFERROR(A2/B2, "Error")
Step 6: Press
- Enter key
The cell shows the result of the formula or the error message/value if there was an error
Before vs After
Before
Cell shows #DIV/0! error when dividing by zero, for example =A2/B2 with B2=0
After
Cell shows 'Error' or 0 or blank instead of the error, for example =IFERROR(A2/B2, "Error")
Settings Reference
Value if error
📍 Inside the IFERROR formula, second argument
Defines what to show when the first formula causes an error
Default: No default, you must specify
Formula to check
📍 Inside the IFERROR formula, first argument
The formula that might cause an error
Default: No default, you must specify
Common Mistakes
Not putting the formula inside IFERROR correctly
IFERROR needs a formula as the first argument to check for errors
Always write the formula you want to check as the first argument inside IFERROR
Forgetting to add the value to show if there is an error
IFERROR requires two arguments; missing the second causes a formula error
Always add a second argument to IFERROR to specify what to show if there is an error
Using IFERROR to hide real problems without checking data
Hiding errors can make you miss important issues in your data
Use IFERROR to improve display, but also check your data and formulas carefully
Summary
IFERROR replaces error messages with a friendly value or text.
It needs two parts: the formula to check and the value to show if there is an error.
Use IFERROR to keep your spreadsheet clean and easy to read.