If/Then Formula

C

Chrissy

=IF(ISBLANK(A1),"",IF(A1=0,1,IF(A1>0,(AM19-V12)/(P12-V12))))

The cell you are testing is A1 - change it to what ever you want.

That does what you said ..... but ...... if A1 is < 0 or contains characters
then you get a "FALSE" as the result.

=IF(ISBLANK(A1),"",IF(A1=0,1,IF(A1>0,(AM19-V12)/(P12-V12),"A1<0")))

is probably more like what you want - but change the last bit in quotes.

Chrissy.
 
C

Chrissy

Chip Pearson wrote
Phil,

Try something like

=IF(A1="","",IF(A1=0,0,(AM19-V12)/(P12-V12)))
--------------------------------^

Should be 1 as OP said

Assuming that my ^ lines up with your formula.

Chrissy.
 
P

Phil Hageman

Thanks for your Chrissy. Your first formula is
essentially the same as Chips. Works great!
 
Top