ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   value is "0" (https://www.excelbanter.com/excel-worksheet-functions/170045-value-0-a.html)

dan

value is "0"
 
What conditional formula should be in cell "C" if I am subtracking column "A"
with column "B", so the value in cell 'C" should be '"0" if the subtraction
is zero or less then zero.

Thank you in advance.

SV

Gaurav[_2_]

value is "0"
 
=IF(A1-B1<0,0,A1-B1)


"dan" wrote in message
...
What conditional formula should be in cell "C" if I am subtracking column
"A"
with column "B", so the value in cell 'C" should be '"0" if the
subtraction
is zero or less then zero.

Thank you in advance.

SV




David Biddulph[_2_]

value is "0"
 
=MAX(0,A1-B1)
--
David Biddulph

"dan" wrote in message
...
What conditional formula should be in cell "C" if I am subtracking column
"A"
with column "B", so the value in cell 'C" should be '"0" if the
subtraction
is zero or less then zero.

Thank you in advance.

SV





All times are GMT +1. The time now is 11:38 PM.

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