Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I change my negative values to zeros in Excel?
I need to convert data from mg/L to mg/kg, but before I can do that I need to
get rid of my negative values. How do I change, for example, -0.005 to zero without manually doing so (I have hundreds of negative values and do not have the time or patience to do so)? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I change my negative values to zeros in Excel?
Hi
Helper column with formula like =MAX(A1,0) Fill down, then replace formula with values. HTH. Best wishes Harald "N_Davis" wrote in message ... I need to convert data from mg/L to mg/kg, but before I can do that I need to get rid of my negative values. How do I change, for example, -0.005 to zero without manually doing so (I have hundreds of negative values and do not have the time or patience to do so)? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I change my negative values to zeros in Excel?
Just the thing for those with no time or patience............
Sub foo() For Each cell In ActiveSheet.UsedRange If cell.Value < 0 Then cell.Value = 0 End If Next End Sub Gord Dibben MS Excel MVP On Thu, 27 Sep 2007 10:57:02 -0700, N_Davis wrote: I need to convert data from mg/L to mg/kg, but before I can do that I need to get rid of my negative values. How do I change, for example, -0.005 to zero without manually doing so (I have hundreds of negative values and do not have the time or patience to do so)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I change the display of negative values to parentheses? | New Users to Excel | |||
How can I display negative numbers as zeros? | Excel Discussion (Misc queries) | |||
is there a function to change negative values to zero? | Excel Worksheet Functions | |||
How can I change all negative values in a column to = 0? | Excel Worksheet Functions | |||
Unwanted Zeros in Excel Chart Displayed Values | Excel Discussion (Misc queries) |