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 Postive # converted to Negative #

I want to be able to enter a positive # in a cell and have it display as a
negative? Help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Postive # converted to Negative #

Hi,
select the range, custom format, enter

"-"0.0

that will do the trick

"2MShad" wrote:

I want to be able to enter a positive # in a cell and have it display as a
negative? Help

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

Thanks, that was simple.

"Eduardo" wrote:

Hi,
select the range, custom format, enter

"-"0.0

that will do the trick

"2MShad" wrote:

I want to be able to enter a positive # in a cell and have it display as a
negative? Help

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Postive # converted to Negative #

Be aware that the number is still positive.

All you did was change the display, not the value.

Do not rely on these for calculations.


Gord Dibben MS Excel MVP

On Thu, 3 Dec 2009 13:19:02 -0800, 2MShad
wrote:

Thanks, that was simple.

"Eduardo" wrote:

Hi,
select the range, custom format, enter

"-"0.0

that will do the trick

"2MShad" wrote:

I want to be able to enter a positive # in a cell and have it display as a
negative? Help


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Postive # converted to Negative #

On Dec 4, 5:00*pm, Gord Dibben <gorddibbATshawDOTca wrote:
Be aware that the number is still positive.

All you did was change the display, not the value.

Do not rely on these for calculations.

Gord Dibben *MS Excel MVP

On Thu, 3 Dec 2009 13:19:02 -0800, 2MShad
wrote:



Thanks, *that was simple.


"Eduardo" wrote:


Hi,
select the range, custom format, enter


"-"0.0


that will do the trick


"2MShad" wrote:


I want to be able to enter a positive # in a cell and have it display as a
negative? Help- Hide quoted text -


- Show quoted text -


How do you figure that it did not change the value?
T.Value = -T.Value

It looks like it changed the value to me and some simple tests confirm
it.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Postive # converted to Negative #

Formatting a number does not change the value of the inputted number.

Enter 1 to 10 in A1:A10

Format as "-"0.0 to display these as negative.

In D1 enter =SUM(A1:A10)

Format D1 as Number or General

I will re-state...............do not rely on the formatted display for
calculations,.


Gord

On Mon, 7 Dec 2009 07:44:21 -0800 (PST), zxcv wrote:

On Dec 4, 5:00*pm, Gord Dibben <gorddibbATshawDOTca wrote:
Be aware that the number is still positive.

All you did was change the display, not the value.

Do not rely on these for calculations.

Gord Dibben *MS Excel MVP

On Thu, 3 Dec 2009 13:19:02 -0800, 2MShad
wrote:



Thanks, *that was simple.


"Eduardo" wrote:


Hi,
select the range, custom format, enter


"-"0.0


that will do the trick


"2MShad" wrote:


I want to be able to enter a positive # in a cell and have it display as a
negative? Help- Hide quoted text -


- Show quoted text -


How do you figure that it did not change the value?
T.Value = -T.Value

It looks like it changed the value to me and some simple tests confirm
it.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Postive # converted to Negative #

On Dec 3, 2:43*pm, 2MShad wrote:
I want to be able to enter a positive # in a cell and have it display as a
negative? Help


You can create this sub in the sheet (go to Tools-Macro-Visual Basic
Editor and double click the sheet:

Private Sub Worksheet_Change(ByVal Target As Range)
For Each T In Target
If IsNumeric(T.Value) Then
If T.Value 0 Then
T.Value = -T.Value
End If
End If
Next
End Sub
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
Can I sort cells of postive and negative numbers in absolute order John Excel Discussion (Misc queries) 1 October 27th 07 09:06 AM
CHANGE A ROW OF POSTIVE NUMBERS TO NEGATIVE NUMBERS Harlan Excel Discussion (Misc queries) 3 December 1st 06 05:04 PM
Showing Negative as Postive klafert Excel Discussion (Misc queries) 3 January 25th 06 12:52 PM
Automate bar chart color based on value postive or negative kathy Excel Discussion (Misc queries) 1 August 31st 05 09:35 PM
reversing signs - making postive a negative number mklafert Excel Worksheet Functions 4 November 29th 04 03:18 AM


All times are GMT +1. The time now is 06:27 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"