Is there a way of not displaying 'Div0!' in a cell?

  • Thread starter Thread starter Guest
  • Start date Start date
Maybe one way:

=if(iserror(<your formua>),"",<your formula again>)

Regards,
Paul
 
There are many ways. To interpret literally what you write, one would use
Conditional Formatting


Select the cells that contain the error value.
On the Format menu, click Conditional Formatting.
In the box on the left, click Formula Is.

In the box on the right, type =ISERROR(reference), where reference is a
reference to the cell that contains the error value.
Click Format, and then click the Font tab.

Click Format.
In the Color box, select white (or whatever color matches the cell background).


Of course, that formula will hide every error.

If you just want to hide DIV/0 errors, try this formula instead:

=2=ERROR.TYPE(reference)
--ron
 
In Excel 2007, perhaps:

=IFERROR(3.14/A1,"")

Returns blank if A1 evaluates to zero.
 
But of course that doesn't distinguish between #DIV/0! and other forms of
error.
It is usually safer to use a formula such as =IF(A1=0,"",3.14/A1).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top