LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default I need to add something onto the formula...Can anyone help?

"Nicole" wrote:
=SUM(S5:X5)+IF(Q5<R5,R5-Q5,0)+IF(R5<Q5,R5-Q5,0)
I want to add if total is <=0 then =0


=MAX(0, SUM(S5:X5)+IF(Q5<R5,R5-Q5,0)+IF(R5<Q5,R5-Q5,0) )

But your two IF() expressions seem odd. Together, they say compute R5-Q5 if
R5 does not equal Q5, otherwise compute zero. But that is exactly what
R5-Q5 does.

I wonder if you want IF(Q5<R5,R5-Q5,0)+IF(R5<Q5,Q5-R5,0). But that is the
same as ABS(Q5-R5).

 
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



All times are GMT +1. The time now is 06:35 PM.

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

About Us

"It's about Microsoft Excel"