Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Eliminate Negatives

This formula (= B2 B3) is in cell B5. I want to modify (= B2 B3) so that
if the answer is a negative number a 0 will appear in cell B5 instead of a
negative number.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 320
Default Eliminate Negatives

=MAX(0,B2-B3)

"MCheru" wrote in message
...
This formula (= B2 - B3) is in cell B5. I want to modify (= B2 - B3) so
that
if the answer is a negative number a "0" will appear in cell B5 instead of
a
negative number.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Eliminate Negatives

Thank you. This is good!

"Bob Umlas" wrote:

=MAX(0,B2-B3)

"MCheru" wrote in message
...
This formula (= B2 - B3) is in cell B5. I want to modify (= B2 - B3) so
that
if the answer is a negative number a "0" will appear in cell B5 instead of
a
negative number.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Eliminate Negatives

Hi,

You can also try the follwing:

=if(B2-B3<0,0,B2-B3)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"MCheru" wrote in message
...
This formula (= B2 B3) is in cell B5. I want to modify (= B2 B3) so
that
if the answer is a negative number a 0 will appear in cell B5 instead of
a
negative number.


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
Minimum without zeros or negatives Hope Excel Worksheet Functions 3 February 25th 09 05:30 PM
Help, my columns are negatives! -- bug? Del Cotter Charts and Charting in Excel 6 November 6th 06 07:07 PM
How do I use Excel with times which are negatives? John_mitch Excel Discussion (Misc queries) 1 April 7th 06 06:59 PM
Positives and Negatives Niagera College Student Excel Worksheet Functions 2 September 20th 05 10:28 PM
multiply negatives Penny Excel Discussion (Misc queries) 5 March 22nd 05 11:37 PM


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