Supress, Hide or Remove #DIV/0! Error in Microsoft Office Excel

In Microsoft Excel or Microsoft Office Excel spreadsheet program, when a value is divided by zero (0) or a blank cell in the formula, the cell that displays the result will show the error value #DIV/0! as the result of the calculation.

The error value may give wrong impression to readers especially when the workbook or worksheet is still in preparation. And it’s not a professional or nice look when the same formula is applied to multiple cells by dragging or copying and all these rows or columns return an “#DIV/0!” error value.

The error value is valid though, as it’s impossible to divide any value with 0. However, it’s possible to suppress, hide or remove the #DIV/0! error value in the cell for unsupported or invalid division formula by using IF worksheet function.

To suppress #DIV/0 error value or keep #DIV/0! from appearing when there is an error, use the following formula in place of the standard division formula:

=IF(denominator=0,"",numerator/denominator)

“Numerator” refers to the cell to be divided. “Denominator” refers to the cell that is the divisor.

For example, for formula of “A1/A2″ (cell A1 devided by cell A2), the formula to enter into the result cell is as below:

=IF(A2=0,"",A1/A2)

The formula above checks to see if the denominator equals zero (or is blank); if so, a blank cell is displayed. Otherwise, the cell that contains the function will display the result of the formula expression after calculating.

Note: To display other information in the cell if the divisor is blank or zero, type the necessary information in the formula where the quotation marks (”") appear. If you want to display text, type it between these quotation marks. If you want to display anything else (values), type it instead of the quotation marks.

Another IF worksheet formula that works utilizing the ISERROR condition. The syntax for the formula portion is:

=IF(ISERROR(numerator/denominator),"",numerator/denominator)

For example,

=IF(ISERROR(A1/A2),"",A1/A2)

Again, to display other information on the cell if the calculation result is erroneous, change the value of the middle parameter (text string requires quotation marks).

After entering the error handling formula as above, users can drag to copy the formula to apply to other cells, and the similar formula will be applied automatically.

2 Responses to “Supress, Hide or Remove #DIV/0! Error in Microsoft Office Excel”

  1. Brad
    July 29th, 2009 23:18
    2

    Is there any way to do this without editing every single formula within the worksheet/workbook. I have a worksheet that updates as data is added and I have a lot of divide by zero errors until Q3 and 4 data is entered. Do you know any other way to do this because I would have to go in and edit hundreds of formulas?

  2. Paul
    July 28th, 2009 22:21
    1

    Thanks for the idea!

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

excel div 0 remove - #div/0! - excel hide div 0 error - div 0 hide - div 0 error - hide div 0 in excel - div 0 remove - hide #DIV/0! - how to remove div 0 in excel - removing div 0 error in excel - #DIV/0 - remove #div/0! - remove div 0 in excel - how to hide div 0 in excel - excel remove div 0 error - excel remove #div/0 - remove div 0 error excel - avoid div 0 in excel - hide div 0 in excel 2007 - div 0 fix - remove div 0 - remove div 0 error in excel - hide div 0 error in excel - how to remove div 0 error - excel avoid div 0 - remove div/0 - excel div/0 - remove #div/0 - remove #DIV/0! from excel - #DIV/0! error - excel div 0 - remove error in excel - removing a #Div/0 error in Excel - div 0 excel - excel hide #DIV/0! - excel hide div/0 - #div/0! excel - excel to remove div - excel hide divide by zero error - div/0 excel - Excel using IF with #DIV/0! - EXCEL HIDE #DIV/0 - excel division by zero error handling - how do i hide div 0 in excel - how to remove #div/0 error - REMOVE DIV 0 error - suppress #DIV/0! - excel div error - excel #div/0! remove - how to avoid div 0 error in excel -