=If Function

C

Calum

I am trying to create a formula that will do the following:-

If "A">="B"
If True = "D"*.2+20
If False = "D"*.1+20

However, taking the false arguement I only want this to work if "D" is >
than 0.

How do I input this?
 
S

SteveG

Calum,

This should work. A1 =A, B1=B and A4=D.

=IF(A1>=B1,SUM(A4*0.2+20),IF(AND(A1<B1,A4>0),SUM(A4*0.1+20),""))

Cheers,

Stev
 
J

joeu2004

Calum said:
If "A">="B"
If True = "D"*.2+20
If False = "D"*.1+20
However, taking the false arguement I only want
this to work if "D" is > than 0. How do I input this?

You don't say want you if A<B and D<=0. I assume
you want simply D.

=IF(A1>=B1, 0.2*D1+20, IF(D1>0, 0.1*D1+20, D1))
 
Top