Use IFERROR in Excel to hide errors and show custom values

Wrap formulas with IFERROR to replace Excel errors (like #DIV/0! or #N/A) with a blank, zero, or custom message so worksheets look clean and readable.

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 YouTube

Step-by-step instructions

  1. 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).
  2. Select the cell with the formula
    Click the cell containing the formula you want to protect so you can edit it.
  3. Wrap the formula with IFERROR
    Edit the formula by typing =IFERROR( then paste or type the original formula as the first argument.
  4. 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.
  5. 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.
  6. 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

Video thumbnail for Use IFERROR in Excel to hide errors and show custom values Play tutorial

Watch on YouTube

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).