Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to convert positive figures to negative ones?

How do we convert positive numbers into negative ones under one column?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to convert positive figures to negative ones?

Hi,

Put -1 in a cell and copy it

Select your column of positive numbers then
edit|Paste special
select multiply
Click OK
delete the cell with -1 in

Mike

"mviuya" wrote:

How do we convert positive numbers into negative ones under one column?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default How to convert positive figures to negative ones?

Put -1 in an empty cell, format it the same way as the others, copy it,
select the range with negative numbers and do editpaste special and select
multiply

If the numbers are in the same column you can use a help column

=IF(A10,-A1,A1)

copy down as long as needed, copy and paste special as values in place
and delete or copy and paste over the old column

--


Regards,


Peo Sjoblom

"mviuya" wrote in message
...
How do we convert positive numbers into negative ones under one column?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default How to convert positive figures to negative ones?

hi,

you can use an auxiliar cell type there "-1" (no quotes) copy it.

Select the numbers you would like to change and

and paste special Values - Multiply

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"mviuya" escreveu:

How do we convert positive numbers into negative ones under one column?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to convert positive figures to negative ones?

Hi Marcelo,
That was simple and helpful.
Thanks a lot.

M Viuya from the USA

"Marcelo" wrote:

hi,

you can use an auxiliar cell type there "-1" (no quotes) copy it.

Select the numbers you would like to change and

and paste special Values - Multiply

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"mviuya" escreveu:

How do we convert positive numbers into negative ones under one column?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 434
Default How to convert positive figures to negative ones?

hi, !

How do we convert positive numbers into negative ones under one column?


do you have any mixture of positives and negatives in "the range" ?
if so, and you want negatives "as is" and positives into negatives...
pretending "the range" in [A2:A35] -???-

try from vba-editor immediate window pane
(copy/paste or type) the following and press enter...

[a2:a35] = [a2:a35*-1^(a2:a350)]

hth,
hector.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default How to convert positive figures to negative ones?

Hola Hector,

What is wrong with the following:

Var1 = 30

[F4:F&Var1] = [F4:F&Var1*-1]

Note1: all values are positive
Note2: using F30 instead of F&Var1 works, but the column list will always be
different. (Yes, the actual variable is "Dim"ed and uses a routine to find
the last row.)

Question: what is wrong with the syntax? What is the proper way of
combining F with Var1? F&Var1 does not work.

Saludos


"Héctor Miguel" wrote:

hi, !

How do we convert positive numbers into negative ones under one column?


do you have any mixture of positives and negatives in "the range" ?
if so, and you want negatives "as is" and positives into negatives...
pretending "the range" in [A2:A35] -???-

try from vba-editor immediate window pane
(copy/paste or type) the following and press enter...

[a2:a35] = [a2:a35*-1^(a2:a350)]

hth,
hector.



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to convert positive figures to negative ones?

I'd do something like:

Option Explicit
Sub testme01()

Dim myCell As Range
Dim Var1 As Long

Var1 = 30
With ActiveSheet
Set myCell = .Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 1)
myCell.Value = -1
myCell.Copy
.Range("f4:F" & Var1).PasteSpecial _
operation:=xlPasteSpecialOperationMultiply
myCell.ClearContents
End With
End Sub

This is the same thing as putting -1 in an empty cell and then edit|copy that
cell.

Then select the range to adjust
Edit|paste special|multiply
and clearing that helper cell.

Billyruben wrote:

Hola Hector,

What is wrong with the following:

Var1 = 30

[F4:F&Var1] = [F4:F&Var1*-1]

Note1: all values are positive
Note2: using F30 instead of F&Var1 works, but the column list will always be
different. (Yes, the actual variable is "Dim"ed and uses a routine to find
the last row.)

Question: what is wrong with the syntax? What is the proper way of
combining F with Var1? F&Var1 does not work.

Saludos

"Héctor Miguel" wrote:

hi, !

How do we convert positive numbers into negative ones under one column?


do you have any mixture of positives and negatives in "the range" ?
if so, and you want negatives "as is" and positives into negatives...
pretending "the range" in [A2:A35] -???-

try from vba-editor immediate window pane
(copy/paste or type) the following and press enter...

[a2:a35] = [a2:a35*-1^(a2:a350)]

hth,
hector.




--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default How to convert positive figures to negative ones?

Thanks Dave,

It works like a charm! I don't have the slightest about the code, so I have
to store it in my "Tool Box" and just know that if I set it up right, I can
use it any time I face the same situation.


"Dave Peterson" wrote:

I'd do something like:

Option Explicit
Sub testme01()

Dim myCell As Range
Dim Var1 As Long

Var1 = 30
With ActiveSheet
Set myCell = .Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 1)
myCell.Value = -1
myCell.Copy
.Range("f4:F" & Var1).PasteSpecial _
operation:=xlPasteSpecialOperationMultiply
myCell.ClearContents
End With
End Sub

This is the same thing as putting -1 in an empty cell and then edit|copy that
cell.

Then select the range to adjust
Edit|paste special|multiply
and clearing that helper cell.

Billyruben wrote:

Hola Hector,

What is wrong with the following:

Var1 = 30

[F4:F&Var1] = [F4:F&Var1*-1]

Note1: all values are positive
Note2: using F30 instead of F&Var1 works, but the column list will always be
different. (Yes, the actual variable is "Dim"ed and uses a routine to find
the last row.)

Question: what is wrong with the syntax? What is the proper way of
combining F with Var1? F&Var1 does not work.

Saludos

"Héctor Miguel" wrote:

hi, !

How do we convert positive numbers into negative ones under one column?

do you have any mixture of positives and negatives in "the range" ?
if so, and you want negatives "as is" and positives into negatives...
pretending "the range" in [A2:A35] -???-

try from vba-editor immediate window pane
(copy/paste or type) the following and press enter...

[a2:a35] = [a2:a35*-1^(a2:a350)]

hth,
hector.




--

Dave Peterson

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to convert positive figures to negative ones?

I think doing it manually is much quicker than finding the macro, installing it,
modifying it for the correct range, and then running it.

Billyruben wrote:

Thanks Dave,

It works like a charm! I don't have the slightest about the code, so I have
to store it in my "Tool Box" and just know that if I set it up right, I can
use it any time I face the same situation.

"Dave Peterson" wrote:

I'd do something like:

Option Explicit
Sub testme01()

Dim myCell As Range
Dim Var1 As Long

Var1 = 30
With ActiveSheet
Set myCell = .Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 1)
myCell.Value = -1
myCell.Copy
.Range("f4:F" & Var1).PasteSpecial _
operation:=xlPasteSpecialOperationMultiply
myCell.ClearContents
End With
End Sub

This is the same thing as putting -1 in an empty cell and then edit|copy that
cell.

Then select the range to adjust
Edit|paste special|multiply
and clearing that helper cell.

Billyruben wrote:

Hola Hector,

What is wrong with the following:

Var1 = 30

[F4:F&Var1] = [F4:F&Var1*-1]

Note1: all values are positive
Note2: using F30 instead of F&Var1 works, but the column list will always be
different. (Yes, the actual variable is "Dim"ed and uses a routine to find
the last row.)

Question: what is wrong with the syntax? What is the proper way of
combining F with Var1? F&Var1 does not work.

Saludos

"Héctor Miguel" wrote:

hi, !

How do we convert positive numbers into negative ones under one column?

do you have any mixture of positives and negatives in "the range" ?
if so, and you want negatives "as is" and positives into negatives...
pretending "the range" in [A2:A35] -???-

try from vba-editor immediate window pane
(copy/paste or type) the following and press enter...

[a2:a35] = [a2:a35*-1^(a2:a350)]

hth,
hector.




--

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
How do I convert a column of numbers from positive to negative? BJ Excel Discussion (Misc queries) 3 March 19th 08 09:38 PM
Convert a column of numbers from positive to negative in Excel JRoseen Excel Discussion (Misc queries) 4 July 7th 06 07:18 PM
convert negative numbers to positive numbers and vice versa bill gras Excel Worksheet Functions 4 December 7th 05 01:39 AM
Changing positive figures to minus figures Louise Excel Worksheet Functions 2 September 14th 05 10:05 AM
Convert positive # to negative bgn2 Excel Discussion (Misc queries) 1 September 2nd 05 02:22 AM


All times are GMT +1. The time now is 05:40 PM.

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"