ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add two cells if one cell is greater than 0 (https://www.excelbanter.com/excel-programming/417436-add-two-cells-if-one-cell-greater-than-0-a.html)

qh8519a

Add two cells if one cell is greater than 0
 
I am looking to add cells 'a' and 'b' if cell 'a' is greater than '0'. If
cell 'a' is less than or equal to '0', I would like the value to be 0. Any
help would be appreciated.

Thanks
Drew

Roger Govier[_3_]

Add two cells if one cell is greater than 0
 
Hi Drew

=IF(A1<=0,0,A1+B1)

--
Regards
Roger Govier

"qh8519a" wrote in message
...
I am looking to add cells 'a' and 'b' if cell 'a' is greater than '0'. If
cell 'a' is less than or equal to '0', I would like the value to be 0.
Any
help would be appreciated.

Thanks
Drew



Mike H

Add two cells if one cell is greater than 0
 
Try,

=IF(A1<=0,0,A1+B1)

Mike

"qh8519a" wrote:

I am looking to add cells 'a' and 'b' if cell 'a' is greater than '0'. If
cell 'a' is less than or equal to '0', I would like the value to be 0. Any
help would be appreciated.

Thanks
Drew



All times are GMT +1. The time now is 10:24 AM.

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