Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007
How I can change negative values automatically to positive.
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007
Either use the function
=ABS(A1) OR Type -1 in a cell Copy that cell Select the range of negative values Right clickPaste special Select Multiply. and click OK will convert all to positive numbers If this post helps click Yes --------------- Jacob Skaria "Maribel" wrote: How I can change negative values automatically to positive. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007
Hi,
That depends on what you mean by automatically. You have two solutions from Jacob, but if you want the value in cell A1 to change as you enter it, from negative to positive you will need VBA code. For example, suppose you want this automatic behavior in the range A1:A1000 on Sheet1 then this code will do it: Private Sub Worksheet_Change(ByVal Target As Range) Dim isect As Range Set isect = Application.Intersect(Target, Range("A1:A1000")) If Not isect Is Nothing Then Target = Abs(Target) End If End Sub 1. To add this code to your file, press Alt+F11, 2. In the VBAProject window, top left side, find your sheet name under your file name and double click it. 3. Paste in or type the code above. -- If this helps, please click the Yes button. Cheers, Shane Devenshire "Maribel" wrote: How I can change negative values automatically to positive. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Analysis Toolpack Issues in Excel 2007 (Office 2007 Enterprise) | Excel Discussion (Misc queries) | |||
Excel 2007 files not showing on screen when opened in Excel 2007 | Setting up and Configuration of Excel | |||
Excel 2007 Query Wizard problem with Access 2007 extensions | Excel Discussion (Misc queries) | |||
Labels: Unable to import all records Excel 2007 to Word 2007 Mailm | Excel Discussion (Misc queries) | |||
Paste EXCEL 2007 sheet into WORD 2007 - objects move around | Excel Discussion (Misc queries) |