Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
es
 
Posts: n/a
Default Format cell for negative

Hi
I want the value that i type into a cell always to be
negative

thanks
  #2   Report Post  
Springbok
 
Posts: n/a
Default

Hi,

You need to adjust the format of the cell - this one for instance: -*
#,##0_-;-* #,##0_-;_-* "-"_-;_-@_-

Notice that the format starts with "-".

Go to Format-Cells-Number and paste this format in the custom part.

Cheers,
Jon

"es" wrote:

Hi
I want the value that i type into a cell always to be
negative

thanks

  #3   Report Post  
Jim May
 
Posts: n/a
Default

Is there a specific Cell or range of cells on your worksheet that you want
this?
Or any and all cells on any Worksheet?


"es" wrote in message
...
Hi
I want the value that i type into a cell always to be
negative

thanks



  #4   Report Post  
Jim May
 
Posts: n/a
Default

In either case:

'Compliments of
'Ron Rosenfeld Apr 8 2003, 4:28 am
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Dim c As Range, aoi As Range
Set aoi = [A1:D10] 'range to make all negative numbers
For Each c In aoi
If Len(c.Text) 0 Then 'Is anything there?
If Not Left(c.Formula, 1) = "=" Then 'ignore if a formula
If IsNumeric(c.Value) Then 'make sure it's a number
c.Value = -Abs(c.Value)
End If
End If
End If
Next c
Application.EnableEvents = True
End Sub



"Jim May" wrote in message
news:mhYVd.43577$7z6.7835@lakeread04...
Is there a specific Cell or range of cells on your worksheet that you want
this?
Or any and all cells on any Worksheet?


"es" wrote in message
...
Hi
I want the value that i type into a cell always to be
negative

thanks





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 format a value when using it within a cell reference tha. packmule Excel Worksheet Functions 4 February 3rd 05 09:32 PM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Discussion (Misc queries) 1 January 4th 05 08:01 PM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Worksheet Functions 1 January 4th 05 08:01 PM
How do I unhide the cell format function in Excel 2000 Len Melcer Excel Worksheet Functions 2 December 15th 04 06:49 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 11:20 PM.

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"