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.
Custom Search

New Articles

Incoming Search Terms for the Article

div 0 hide - excel div 0 remove - #DIV/0! - div 0 remove - remove div 0 in excel - excel div 0 hide - remove div 0 error in excel - excel remove div 0 error - how to avoid div 0 error in excel - how to remove div 0 in excel - remove #div/0! - div 0 error - excel hide div 0 error - hide div 0 in excel - how to hide div 0 in excel - excel hide errors - removing div 0 error in excel - hide #DIV/0! - HOW TO HIDE #DIV/0! - #DIV/0! error - div 0 excel - excel #DIV/0! - hiding div 0 in excel - REMOVE DIV 0 - avoid div 0 error excel - excel hide #DIV/0! - hide #div/0 - hide errors in excel - Getting #DIV/0!, how to get 0%? - how to replace div 0 in excel - div 0 fix - how to hide errors in excel - HOW TO REMOVE #DIV/0! - hide div 0 error in excel - excel if error show 0 - #div/0 error - delete #DIV/0! - excel zero denominator assign 0 - #DIV/0 - #div/0! why - excel hide divide by zero - excel remove #DIV/0! - hide divide by zero error in excel 2007 - how to hide #DIV/0! in excel - if #DIV/0! - remove #DIV/0 - excel #div/0 - how to eliminate div 0 in excel - how to eliminate div 0 - #DIV Error -