What the video covers
Show how to modify an existing formula by wrapping it with IFERROR to return a replacement value when the original formula produces an error.
Watch the video on YouTubeStep-by-step instructions
- Enter data and create a formula that might error
Open your workbook and enter the values needed. Create the formula that could produce an error (for example a division that could divide by zero). - Select the cell with the formula
Click the cell containing the formula you want to protect so you can edit it. - Wrap the formula with IFERROR
Edit the formula by typing =IFERROR( then paste or type the original formula as the first argument. - Specify the replacement value
After the original formula, type a comma and then the value to show when an error occurs — for example 0, "" for a blank, or "N/A" for a message. - Close and confirm the formula
Close the parentheses and press Enter. The cell will now show the original result when valid, or the replacement when an error occurs. - Apply to other cells
Use the fill handle (drag the cell corner) or copy/paste the modified formula to other cells to apply the same error handling across your range.
Watch the video
Play tutorial
Why it matters
Formulas can return errors (divide-by-zero, #N/A, #VALUE!, etc.) that clutter reports or break summaries. IFERROR lets you provide a safe fallback value so sheets remain readable and calculations downstream continue working.
Check your result
The cell should display the original formula result when it calculates successfully, and display the replacement value (blank, 0, or custom text) when the original formula would produce an error. Filling the modified cell across rows/columns should apply the same behavior.
Troubleshooting
– If the replacement value appears unexpectedly, verify the original formula's inputs — IFERROR hides errors but doesn't fix bad inputs. – If you see nothing change, ensure you edited the actual formula and pressed Enter. – To preserve numeric output for further calculations, use 0 (or another number) as the replacement instead of text. – IFERROR covers all error types; if you need to handle only specific errors, use more targeted functions instead (e.g., IF and ISERROR combinations).