Thread: Formula
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey[_2_] JE McGimpsey[_2_] is offline
external usenet poster
 
Posts: 40
Default Formula

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)


In article ,
"John P" wrote:

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