Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MS MS is offline
external usenet poster
 
Posts: 26
Default Column of negative numbers

Is it possible to highlight and format a part of a column before entering
data so that whatever entered is a negative number? This way i do not have
to press the minus sign before entering the number.

Thank u
ms
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Column of negative numbers

You could format the column to look like negative numbers but the numbers
would still be positive. Much better to enter them as positive and then
change them by entering -1 in an empty cell, copying it, highlighting the
column and the selecting Paste Special Multiply


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MS" wrote in message
...
Is it possible to highlight and format a part of a column before entering
data so that whatever entered is a negative number? This way i do not
have
to press the minus sign before entering the number.

Thank u
ms



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Column of negative numbers

If you truly want them to be negative you could use event code that would
multiply them by -1 when entered.

Private Sub Worksheet_Change(ByVal Target As Range)
Const MY_RANGE As String = "A1:A10"
On Error GoTo endit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(MY_RANGE)) Is Nothing Then
Target.Value = Target.Value * -1
End If
endit:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code".

Copy/paste into that sheet module.

Adjust MY_RANGE to suit.


Gord Dibben MS Excel MVP


On Sat, 22 Sep 2007 11:42:00 -0700, MS wrote:

Is it possible to highlight and format a part of a column before entering
data so that whatever entered is a negative number? This way i do not have
to press the minus sign before entering the number.

Thank u
ms


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MS MS is offline
external usenet poster
 
Posts: 26
Default Column of negative numbers

Thank you Sandy

"Sandy Mann" wrote:

You could format the column to look like negative numbers but the numbers
would still be positive. Much better to enter them as positive and then
change them by entering -1 in an empty cell, copying it, highlighting the
column and the selecting Paste Special Multiply


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MS" wrote in message
...
Is it possible to highlight and format a part of a column before entering
data so that whatever entered is a negative number? This way i do not
have
to press the minus sign before entering the number.

Thank u
ms




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MS MS is offline
external usenet poster
 
Posts: 26
Default Column of negative numbers

Thank you Gord.
MS

"Gord Dibben" wrote:

If you truly want them to be negative you could use event code that would
multiply them by -1 when entered.

Private Sub Worksheet_Change(ByVal Target As Range)
Const MY_RANGE As String = "A1:A10"
On Error GoTo endit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(MY_RANGE)) Is Nothing Then
Target.Value = Target.Value * -1
End If
endit:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code".

Copy/paste into that sheet module.

Adjust MY_RANGE to suit.


Gord Dibben MS Excel MVP


On Sat, 22 Sep 2007 11:42:00 -0700, MS wrote:

Is it possible to highlight and format a part of a column before entering
data so that whatever entered is a negative number? This way i do not have
to press the minus sign before entering the number.

Thank u
ms



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
How do I make a column formatted for only Negative Numbers? DeeDeeCee New Users to Excel 4 September 5th 07 11:14 AM
column of negative numbers into positive numbers ORLFREIGHTBOY Excel Worksheet Functions 2 March 1st 07 08:26 PM
Excel Formula - Add column of numbers but ignore negative numbers view for Distribution List members Excel Worksheet Functions 1 April 7th 06 03:13 AM
Formula to ignore negative numbers in a column? Tia Excel Worksheet Functions 3 February 4th 06 02:53 PM
How do I change the plus to a negative in a column of numbers? JKB Excel Worksheet Functions 2 August 3rd 05 02:24 PM


All times are GMT +1. The time now is 01:05 AM.

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

About Us

"It's about Microsoft Excel"