ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Subtraction formula (https://www.excelbanter.com/excel-programming/303375-subtraction-formula.html)

Andrew[_37_]

Subtraction formula
 
I am trying to create a formula that will either subtract
one cell from another if the number in the first cell is
greater then zero, if the number is less then zero then it
will just display the number of the first cell without
subtracting anything.

Andy Wiggins

Subtraction formula
 
First cell = A1
Second cell = A2
Formula in cell A3

=IF(A10,A1-A2,A1)

--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"



"Andrew" wrote in message
...
I am trying to create a formula that will either subtract
one cell from another if the number in the first cell is
greater then zero, if the number is less then zero then it
will just display the number of the first cell without
subtracting anything.





All times are GMT +1. The time now is 01:13 PM.

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