How to Fix Divide by Zero Errors in Microsoft Excel and Google Sheets

Microsoft Excel

  1. Open the Excel spreadsheet that contains the formula causing the divide by zero error (#DIV/0!).
  2. 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.
  3. Press Enter to apply the formula.

More about Excel formula errors.

Google Sheets

  1. Open your Google Sheets document.
  2. 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, "").
  3. 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.

Previous
Previous

How to Lock Background Color in a Sheet in Microsoft Excel

Next
Next

How to Expand or Collapse All Fields in a PivotTable in Microsoft Excel