Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Set Column Negative

Hi Folks - I know how to convert positive numbers to negative. The multiply
by -1 works well if you have already entered the values. Is there a way to
force negative numbers in a specific column at the time of entry? Thanks.

--
Michael


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Set Column Negative

Michael Laferriere wrote:
Hi Folks - I know how to convert positive numbers to negative. The multiply
by -1 works well if you have already entered the values. Is there a way to
force negative numbers in a specific column at the time of entry? Thanks.


Would you want to use validation where entry < 0?

Beege
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Set Column Negative

Beege - Not really ... I was just getting lazy, hoping there was way to
eliminate the need for me to type a negative sign.


Michael


"Beege" wrote in message
. ..
Michael Laferriere wrote:
Hi Folks - I know how to convert positive numbers to negative. The
multiply by -1 works well if you have already entered the values. Is
there a way to force negative numbers in a specific column at the time of
entry? Thanks.


Would you want to use validation where entry < 0?

Beege



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Set Column Negative

On Mar 6, 8:53 pm, "Michael Laferriere" wrote:
Hi Folks - I know how to convert positive numbers to negative. The multiply
by -1 works well if you have already entered the values. Is there a way to
force negative numbers in a specific column at the time of entry? Thanks.

--
Michael


Michael,
if you want all values in a certain column, say A:A, become negative,
you can use the following event procedu

Private Sub Worksheet_Change(ByVal Target As Range)
TargetCol = 1 'change column number here
If Target.Column = TargetCol Then
Target.Value = -Abs(Target.Value)
End If
End Sub

To install:
Right-click on the sheet-tab of the sheet in question. Choose View
COde. Paste the above code.

HTH
Kostis Vezerides

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
making all the figures in one column appear as a negative judgejulz Excel Discussion (Misc queries) 4 December 19th 06 03:21 PM
Negative column haigh New Users to Excel 7 December 9th 06 10:13 AM
How can I change all negative values in a column to = 0? dbsavoy Excel Worksheet Functions 3 August 21st 06 08:14 PM
Negative Number column go New Users to Excel 1 November 28th 05 01:10 AM
how do i set up a column with negative values automatically? pooperdoodle Excel Discussion (Misc queries) 3 August 15th 05 09:23 PM


All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"