Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default change negative sign from end of the number to the begining

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default change negative sign from end of the number to the begining

Type 1 in an empty cell in your spread sheet. Copy it then select the column
of numbers in question, paste special, multiply.

This multiplies all values by positive 1 (so positive values remain positive
and negative values remain negative) and all your negative numbers should be
formatted consistently.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default change negative sign from end of the number to the begining

Dave,

I tried your method, but it did not work.

"Dave F" wrote:

Type 1 in an empty cell in your spread sheet. Copy it then select the column
of numbers in question, paste special, multiply.

This multiplies all values by positive 1 (so positive values remain positive
and negative values remain negative) and all your negative numbers should be
formatted consistently.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default change negative sign from end of the number to the begining

How are the numbers formatted? Right-click on one of the numbers which has
the negative sign to the right and see what its formatting looks like. See
if you can select formatting with the sign on the left.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Dave,

I tried your method, but it did not work.

"Dave F" wrote:

Type 1 in an empty cell in your spread sheet. Copy it then select the column
of numbers in question, paste special, multiply.

This multiplies all values by positive 1 (so positive values remain positive
and negative values remain negative) and all your negative numbers should be
formatted consistently.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default change negative sign from end of the number to the begining

Dave,

The format said the cell did not have specific format. I am not able to
convert to regular negative sign.

"Dave F" wrote:

How are the numbers formatted? Right-click on one of the numbers which has
the negative sign to the right and see what its formatting looks like. See
if you can select formatting with the sign on the left.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Dave,

I tried your method, but it did not work.

"Dave F" wrote:

Type 1 in an empty cell in your spread sheet. Copy it then select the column
of numbers in question, paste special, multiply.

This multiplies all values by positive 1 (so positive values remain positive
and negative values remain negative) and all your negative numbers should be
formatted consistently.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default change negative sign from end of the number to the begining

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default change negative sign from end of the number to the begining

I would guess that perhaps your numbers are really text that just look like
numbers.

You could try this text formula to *both* move the minus sign and coerce the
text to numbers:

=IF(ISERR(A1*1),LEFT(A1,LEN(A1)-1)*-1,A1)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"james" wrote in message
...
Dave,

The format said the cell did not have specific format. I am not able to
convert to regular negative sign.

"Dave F" wrote:

How are the numbers formatted? Right-click on one of the numbers which
has
the negative sign to the right and see what its formatting looks like.
See
if you can select formatting with the sign on the left.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Dave,

I tried your method, but it did not work.

"Dave F" wrote:

Type 1 in an empty cell in your spread sheet. Copy it then select
the column
of numbers in question, paste special, multiply.

This multiplies all values by positive 1 (so positive values remain
positive
and negative values remain negative) and all your negative numbers
should be
formatted consistently.

Dave
--
Brevity is the soul of wit.


"james" wrote:

Hi,

I have a column of numbers. Some of the negative number with
negative sigh
at the end of the number. How to I convert the negative sign from
back of the
number to the front of the number. ( x- - -x)

Thanks

James


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default change negative sign from end of the number to the begining

Thanks Dave,

It works great.

James

"Dave Peterson" wrote:

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James


--

Dave Peterson

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default change negative sign from end of the number to the begining

DataText to ColumnsNextNextAdvanced.

Make sure the "trailing minus etc." option is checked and Finish.


Gord Dibben MS Excel MVP

On Fri, 22 Sep 2006 14:38:02 -0700, james
wrote:

Thanks Dave,

It works great.

James

"Dave Peterson" wrote:

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with negative sigh
at the end of the number. How to I convert the negative sign from back of the
number to the front of the number. ( x- - -x)

Thanks

James


--

Dave Peterson


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default change negative sign from end of the number to the begining

What version Gord?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
DataText to ColumnsNextNextAdvanced.

Make sure the "trailing minus etc." option is checked and Finish.


Gord Dibben MS Excel MVP

On Fri, 22 Sep 2006 14:38:02 -0700, james

wrote:

Thanks Dave,

It works great.

James

"Dave Peterson" wrote:

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with negative
sigh
at the end of the number. How to I convert the negative sign from back
of the
number to the front of the number. ( x- - -x)

Thanks

James

--

Dave Peterson





  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default change negative sign from end of the number to the begining

xl2002+
(IIRC)

RagDyer wrote:

What version Gord?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
DataText to ColumnsNextNextAdvanced.

Make sure the "trailing minus etc." option is checked and Finish.


Gord Dibben MS Excel MVP

On Fri, 22 Sep 2006 14:38:02 -0700, james

wrote:

Thanks Dave,

It works great.

James

"Dave Peterson" wrote:

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with negative
sigh
at the end of the number. How to I convert the negative sign from back
of the
number to the front of the number. ( x- - -x)

Thanks

James

--

Dave Peterson



--

Dave Peterson
  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default change negative sign from end of the number to the begining

Been working on the older machines too much!

Thanks Dave.
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"Dave Peterson" wrote in message
...
xl2002+
(IIRC)

RagDyer wrote:

What version Gord?
--
Regards,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
DataText to ColumnsNextNextAdvanced.

Make sure the "trailing minus etc." option is checked and Finish.


Gord Dibben MS Excel MVP

On Fri, 22 Sep 2006 14:38:02 -0700, james

wrote:

Thanks Dave,

It works great.

James

"Dave Peterson" wrote:

Dana DeLouis posted this:


Sub TrailingMinus()
' = = = = = = = = = = = = = = = =
' Use of CDbl suggested by Peter Surcouf
' Program by Dana DeLouis,
' = = = = = = = = = = = = = = = =
Dim rng As Range
Dim bigrng As Range

On Error Resume Next
Set bigrng = Cells.SpecialCells(xlConstants, xlTextValues).Cells
If bigrng Is Nothing Then Exit Sub

For Each rng In bigrng.Cells
rng = CDbl(rng)
Next
End Sub

If you're new to macros, you may want to read David McRitchie's intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

james wrote:

Hi,

I have a column of numbers. Some of the negative number with

negative
sigh
at the end of the number. How to I convert the negative sign from

back
of the
number to the front of the number. ( x- - -x)

Thanks

James

--

Dave Peterson



--

Dave Peterson


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
Format cells to change a number from a positive to negative jagfan123456 Excel Worksheet Functions 4 September 12th 06 06:35 PM
Changing a Number in a Column Using Arrays [email protected] Excel Worksheet Functions 3 September 12th 06 02:48 PM
Force function to show positive or negative number? smoore Excel Worksheet Functions 3 March 3rd 06 08:34 PM
How do I replace a negative number at the end of a formula with a. dealn2 Excel Discussion (Misc queries) 5 December 23rd 04 07:47 PM
how to change the state of a number in a cell from negative to po. Steve11 Excel Discussion (Misc queries) 1 November 29th 04 07:00 AM


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