Skip to content

Hide errors with IFERROR

Show a clean value instead of #DIV/0!, #N/A or other errors.

The formula

Argument separator
Excel and Google Sheets
=IFERROR(B2/C2, 0)

How it works

  1. B2/C2

    The calculation that might fail, here a division that errors when C2 is 0 or empty.

  2. 0

    What to show instead of the error. Use "" for an empty-looking cell.

Example

B: RevenueC: UnitsD: Result
5002025
30000
1200

Tips

  • IFERROR hides every error, including real mistakes. Use IFNA to hide only "not found" from lookups.