=If Function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
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))
 

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

Back
Top