#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Return 0.00 if Neg.

Excel 2007
I am using a very simple formula;
cell D22=SUM(D20-D19)
But if the sum of the above formula is negative, I need to show 0.00 in cell
D22
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Return 0.00 if Neg.

=MAX(0,SUM(D20-D19))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Canon" wrote:

Excel 2007
I am using a very simple formula;
cell D22=SUM(D20-D19)
But if the sum of the above formula is negative, I need to show 0.00 in cell
D22

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Return 0.00 if Neg.

Try

=MAX(0,D20-D19)

Mike


"Canon" wrote:

Excel 2007
I am using a very simple formula;
cell D22=SUM(D20-D19)
But if the sum of the above formula is negative, I need to show 0.00 in cell
D22

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Return 0.00 if Neg.

I'm not sure, why you're using a SUM(D20-D19), but here is how you would use
a conditional formula.

=if(D20-D19<0,0.00,D20-D19)

"Canon" wrote:

Excel 2007
I am using a very simple formula;
cell D22=SUM(D20-D19)
But if the sum of the above formula is negative, I need to show 0.00 in cell
D22

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
11 becomes 12 after hit return XD-San Jose Excel Discussion (Misc queries) 3 March 3rd 09 09:45 AM
How can I return zero after a max value has been met? hcronrath Excel Worksheet Functions 7 February 26th 09 10:20 PM
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null Ben Excel Discussion (Misc queries) 2 March 15th 07 01:02 AM
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM
check if reference exists, then return its value or return 0 doudou Excel Worksheet Functions 1 June 4th 05 09:17 PM


All times are GMT +1. The time now is 09:49 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"