#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Formula

=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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Formula

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

--
HTH
Roger
Shaftesbury (UK)


"John P" wrote in message
...
=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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Formula

John P,

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

Rob

"John P" wrote in message
...
=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




  #4   Report Post  
Posted to microsoft.public.excel.programming
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???

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"