ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Replacing negative formual results with a zero. (https://www.excelbanter.com/excel-discussion-misc-queries/102448-replacing-negative-formual-results-zero.html)

smittys1

Replacing negative formual results with a zero.
 
I am doing simple addition and subtraction formulas that result feed into
other formulas so I want to restrict the results to a zero if the initial
formula results revert to zero if they are negative.

Stefi

Replacing negative formual results with a zero.
 
=MAX(0,yourformula)

Regards,
Stefi



€˛smittys1€¯ ezt Ć*rta:

I am doing simple addition and subtraction formulas that result feed into
other formulas so I want to restrict the results to a zero if the initial
formula results revert to zero if they are negative.


robert111

Replacing negative formual results with a zero.
 

=if(A1-B1<0,0,A1-B1)


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=567021



All times are GMT +1. The time now is 03:16 AM.

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