![]() |
how do i set up a column with negative values automatically?
i am having to enter negative numbers in a single column. is there a way to
do so without having to enter all of them one by one manually? is there a command that will automatically make my entry negative? |
Lets say you enter all the numbers in your column as positive (without the -
sign). Then enter -1 in an unused cell somewhere. Copy this cell and paste it special into all your positive numbers with the multiply option checked. This will make all your numbers negative in one fell swoop. -- Gary's Student "pooperdoodle" wrote: i am having to enter negative numbers in a single column. is there a way to do so without having to enter all of them one by one manually? is there a command that will automatically make my entry negative? |
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit: Application.EnableEvents = False With Target If .Column = 2 Then .Value = Abs(.Value) End If End With ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH RP (remove nothere from the email address if mailing direct) "pooperdoodle" wrote in message ... i am having to enter negative numbers in a single column. is there a way to do so without having to enter all of them one by one manually? is there a command that will automatically make my entry negative? |
One way
In a blank cell enter -1 copy highlight range with numbers needing correction Editpaste special and click the radio button for multiply HTH "pooperdoodle" wrote: i am having to enter negative numbers in a single column. is there a way to do so without having to enter all of them one by one manually? is there a command that will automatically make my entry negative? |
All times are GMT +1. The time now is 08:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com