Table of Contents
Google Sheets is a popular spreadsheet program that allows users to organize, analyze, and manipulate data. However, when working with complex formulas, it is common to encounter errors, such as the “#DIV/0!” error, which occurs when a formula attempts to divide a number by zero. This error can disrupt the accuracy and functionality of the spreadsheet. To resolve this issue, users can make use of the IFERROR function in Google Sheets. By wrapping the formula in the IFERROR function, the spreadsheet will ignore any #DIV/0! errors and display a blank cell instead. This will ensure that the spreadsheet remains error-free and data analysis can be performed accurately.
Google Sheets: Ignore #DIV/0! Error
In Google Sheets, if you attempt to divide a value by zero you will receive #DIV/0! as a result.
You can use the following basic syntax to perform division while ignoring #DIV/0! values:
=IFERROR(A2/B2, "")
In this particular formula, we attempt to divide the value in cell A2 by the value in cell B2.
If B2 happens to be a zero, we simply return a blank as a result.
The following examples show how to use this syntax in practice.
Example: Ignore #DIV/0 When Using Division in Google Sheets
Suppose we attempt to divide the values in column A by the values in column B in this particular Google Sheets spreadsheet:

Notice that for each cell in column C where we attempt to divide by zero, we receive #DIV/0! as a result.
To ignore this error, we can type the following formula into cell C2:
=IFERROR(A2/B2, "")
We can then copy and paste this formula down to every remaining cell in column C:

Now for each cell in column C where we attempt to divide by zero, we simply receive a blank value as a result.
Note that we could also use the following formula to return a zero as a result instead:
=IFERROR(A2/B2, 0)

Now for each cell in column C where we attempt to divide by zero, we simply receive a zero as a result.
Note: Feel free to replace zero with whatever numeric or text value you’d like to display instead.
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I make Google Sheets ignore #DIV/0! errors?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-make-google-sheets-ignore-div-0-errors/
stats writer. "How can I make Google Sheets ignore #DIV/0! errors?." PSYCHOLOGICAL SCALES, 23 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-make-google-sheets-ignore-div-0-errors/.
stats writer. "How can I make Google Sheets ignore #DIV/0! errors?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-make-google-sheets-ignore-div-0-errors/.
stats writer (2024) 'How can I make Google Sheets ignore #DIV/0! errors?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-make-google-sheets-ignore-div-0-errors/.
[1] stats writer, "How can I make Google Sheets ignore #DIV/0! errors?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I make Google Sheets ignore #DIV/0! errors?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
