ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Converting negative numbers in a range of cells to zero (https://www.excelbanter.com/excel-discussion-misc-queries/3863-converting-negative-numbers-range-cells-zero.html)

 Dede January 14th 05 06:10 PM

Converting negative numbers in a range of cells to zero

Greetings!

How do I create a function that will change a range of cells that are
all negative numbers to zero? I want to keep the orginal negative
numbers as well. Thank you!!!

 Peo Sjoblom January 14th 05 06:21 PM

Use a help column and a formula like

=MAX(0,A1)

copy down/across, then copy and paste special as values in place

Regards,

Peo Sjoblom

"Dede" wrote:

Greetings!

How do I create a function that will change a range of cells that are
all negative numbers to zero? I want to keep the orginal negative
numbers as well. Thank you!!!

 tjtjjtjt January 14th 05 06:21 PM

In another range use:
=MAX(0,A1), where A1 is the first cell in the original range.
Copy as needed.

tj

"Dede" wrote:

Greetings!

How do I create a function that will change a range of cells that are
all negative numbers to zero? I want to keep the orginal negative
numbers as well. Thank you!!!

 Myrna Larson January 14th 05 06:23 PM

You need a formula in a 2nd column: =MAX(A1,0)

On 14 Jan 2005 10:10:42 -0800, "Dede" wrote:

Greetings!

How do I create a function that will change a range of cells that are
all negative numbers to zero? I want to keep the orginal negative
numbers as well. Thank you!!!

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