ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Eliminate Negatives (https://www.excelbanter.com/excel-worksheet-functions/223288-eliminate-negatives.html)

MCheru

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.

Bob Umlas[_3_]

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.




MCheru

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.





Ashish Mathur[_2_]

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.




All times are GMT +1. The time now is 09:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com