iserror help

M

milehigh

Hi all,

I am trying to eliminate the Div/9 error that I get

my formula is the following:

=IF(OR(AND(D30>=0.2),AND(D28=0,E28>0)),"PD",IF(AND
(D30="PD",E28>0),"PD",(E28-MIN($C$28:D28))/MIN($C$28:D28)

I tried using iserror in the following manner:

=if(iserror(IF(OR(AND(D30>=0.2),AND(D28=0,E28>0)),"PD",IF
(AND(D30="PD",E28>0),"PD",(E28-MIN($C$28:D28))/MIN
($C$28:D28))),0,IF(OR(AND(D30>=0.2),AND
(D28=0,E28>0)),"PD",IF(AND(D30="PD",E28>0),"PD",(E28-MIN
($C$28:D28))/MIN($C$28:D28)))

but it keeps giving me an error (that the formula is not
correct).

I just want to display a zero when my formula divides by
zero.... Thanks in advance.
 
F

Frank Kabel

milehigh said:
Hi all,

I am trying to eliminate the Div/9 error that I get

my formula is the following:

=IF(OR(AND(D30>=0.2),AND(D28=0,E28>0)),"PD",IF(AND
(D30="PD",E28>0),"PD",(E28-MIN($C$28:D28))/MIN($C$28:D28)

Hi
try
=IF(OR(AND(D30>=0.2),AND(D28=0,E28>0)),"PD",IF(AND(D30="PD",E28>0),"PD"
,IF(MIN($C$28:D28)<>0,(E28-MIN($C$28:D28))/MIN($C$28:D28),0)))

Frank
 
B

Bob Phillips

Just test the error condition, like so

=IF(MIN($C$28:D28)=0,0,IF(OR(AND(D30>=0.2),AND(D28=0,E28>0)),"PD",IF(AND(D30
="PD",E28>0),"PD",(E28-MIN($C$28:D28))/MIN($C$28:D28))))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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


Top