hide the #DIV/0

  • Thread starter Thread starter Manos
  • Start date Start date
M

Manos

Dear all,
there is anywhere that i can hide or disapear the #DIV/0?
thanks in advance
Manos
 
Hi Manos
you could change your formulas like the following:
instead of
=A1/B1
use
=IF(OR(B1=0,B1=""),"",A1/B1)
 
Hi Manos!

Best approach is to not do the calculation that results in #DIV/0!

(eg)

=IF(B1="","",A1/B1)

You can use ISERROR but I regard that as a last resort as it might
hide errors that you should know about:

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



--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
The below example shows how to hide the #DIV/0 in cell
A1. If A1 is blank the calculated cell will be blank, if
not the A1*B4)/3600/24) sum will be run.

=IF(A1=0,"",(A1*B4)/3600/24)
 
The best way is to prevent the error in the first place, so instead of


=B1/A1

use

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

You can change "" to an error message, or a default value.
 
Mano
One way is to try something like thi
=if(iserr(a1/b1)," ",a1/b1
need to replace a1/b1 with own calculatio
 
Supposing that you want A1/B1...

=IF(B1,A1/B1,"")

=IF(N(B1),A1/B1,"")
 
Hi Manos
N() is a funtction (see the Excel help). It converts an expression to a
numerical value
 
N(A1) returns the value in A1 if it's as such a number to Excel.
If A1 is a text value, even if it's a text-formatted number, N will return
0.
 

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

HIDE #div/0 1
how to hide #DIV/0! 6
hide #div/0 2
Div / 0 5
HIDING DIV/0! 2
#div/0 error 2
iserror problem 9
#DIV/0! in a Pivot Table 1

Back
Top