ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I eliminate negative values in a spreadsheet ? (https://www.excelbanter.com/excel-discussion-misc-queries/116746-how-do-i-eliminate-negative-values-spreadsheet.html)

Grant

How do I eliminate negative values in a spreadsheet ?
 
I would like calcualed vales in cells to =zero if the calculation result is
negative/blow zero. In other words a threshold that values below zero are not
produced.

JMB

How do I eliminate negative values in a spreadsheet ?
 
For example:
=MAX(0, SUM(A1:A10))


"grant" wrote:

I would like calcualed vales in cells to =zero if the calculation result is
negative/blow zero. In other words a threshold that values below zero are not
produced.


Earl Kiosterud

How do I eliminate negative values in a spreadsheet ?
 
Grant,

You can make cells yielding negatives appear as 0 with formatting. Format -
Cells - Number - Custom tab:

General;"0";0

Or nothing:

General;;0

This is for display only; the formula will still be yielding a negative
value, and any formulas referring to the cell will not get 0, but the true
(negative) value. In that case, modify the formula to not yield a negative
value, as per JMB's post.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"grant" wrote in message
...
I would like calcualed vales in cells to =zero if the calculation result is
negative/blow zero. In other words a threshold that values below zero are
not
produced.





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

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