Formula

J

John P

=IF(R20>=C20,((R20-C8)*Growth)-(H20+K20+N20+Q20),0)

I have this formula that runs well but I would like it to show zero IF the
result is negative?

Can anyone help please???

Thanks


John P
North Yorkshire UK
 
R

Roger Whitehead

If I understand the question, I think you need:

=IF(((O20-C8)*Growth)-(H20+K20+L20+M20)<0,0,IF(O20>=C20,((O20-C8)*Growth)-(H
20+K20+L20+M20),0))
 
R

Rob van Gelder

John P,

=IF(AND(R20>=C20,((R20-C8)*Growth)>=(H20+K20+N20+Q20)),((R20-C8)*Growth)-(H2
0+K20+N20+Q20),0)

Rob
 
J

JE McGimpsey

one way:

=IF(R20>=C20,MAX((R20-C8)*Growth-(H20+K20+N20+Q20),0),0)

or, slightly shorter:

=MAX((R20-C8)*Growth-(H20+K20+N20+Q20),0)*(R20>=C20)
 

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

Top