ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I calculate negative numbers to = zero in excel? (https://www.excelbanter.com/excel-discussion-misc-queries/42889-can-i-calculate-negative-numbers-%3D-zero-excel.html)

HeyTriciaC

Can I calculate negative numbers to = zero in excel?
 
When I do an autosum some of the numbers are equally negative numbers. But I
want them to just SHOW zero instead. Is this possible?

David Hepner

You can use the round function:

=round(your number,0)

"HeyTriciaC" wrote:

When I do an autosum some of the numbers are equally negative numbers. But I
want them to just SHOW zero instead. Is this possible?


Mike

In a new column run something like
=IF(a1<0,0,a1)
Once the first cell is done, highlight it and hold down the shift key and
tap down arrow or page down keys then hit control d (copys down).

"HeyTriciaC" wrote:

When I do an autosum some of the numbers are equally negative numbers. But I
want them to just SHOW zero instead. Is this possible?


David Hepner

Or you could use this formula:

=IF(AND(A1<1,A1-1),ABS(A1),A1)

"HeyTriciaC" wrote:

When I do an autosum some of the numbers are equally negative numbers. But I
want them to just SHOW zero instead. Is this possible?



All times are GMT +1. The time now is 08:53 PM.

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