ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   negetive numbers in a formula (https://www.excelbanter.com/excel-discussion-misc-queries/185499-negetive-numbers-formula.html)

Andy

negetive numbers in a formula
 
I am trying to put together a formula that if the sum of 4 cells is less than
zero it the cell just shows 0

Pete_UK

negetive numbers in a formula
 
Something like this:

=MAX(A1+B2+C3+D4,0)

if you want the sum to show if greater than zero, or this if not:

=IF(A1+B2+C3+D4<0,0,"")

Hope this helps.

Pete

On Apr 29, 5:00*pm, Andy wrote:
I am trying to put together a formula that if the sum of 4 cells is less than
zero it the cell just shows 0



Gary''s Student

negetive numbers in a formula
 
=IF(A1+B2+C3+D4<0,0,A1+B2+C3+D4)
--
Gary''s Student - gsnu200781


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

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