How to Fix Divide by Zero Errors in Microsoft Excel and Google Sheets
Microsoft Excel
- Open the Excel spreadsheet that contains the formula causing the divide by zero error (#DIV/0!).
- Suppose the formula is something like
=A2/B2
. You can correct the error by modifying the formula to=IFERROR(A2/B2, "")
. This tells Excel to return an empty string ("") instead of an error when a cell value causes an error. - Press
Enter
to apply the formula.
More about Excel formula errors.
Google Sheets
- Open your Google Sheets document.
- Let's say you have a similar formula
=A2/B2
which is causing the divide by zero error (#DIV/0!). Modify the formula to=IFERROR(A2/B2, "")
. - Press
Enter
to apply the formula.
More about Google Sheets function errors.
Summary This tutorial guides you on how to fix divide by zero errors in Microsoft Excel and Google Sheets. By using the IFERROR function, you can prevent these errors from appearing and provide a more presentable output.