Followed instructions but it wont work....

talisman77

New Member
Joined
Apr 7, 2011
Messages
26
I need to convert a column of numbers to the opposite value....Positive to negative and visa versa. I have 480 numbers and would really like to not have to do it manually!!!

Everyone says to put a -1 in an empty cell and then copy it. Then highlight the numbers you want to convert and hit "Paste Special" with radio buttons "value" and "multiply" checked.

I have done that every way I can think of and the only thing I get, is the empty cells filled with a zero.

I am sure it is just a setting somewhere....but where??????

Any help would be greatly apprectiated!

Thanks,
Bob
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
That sounds like you haven't copied the -1 properly so it is multiplying by blank or 0.

Make sure that you copy the correct cell (the one with -1 in it) and try again.
 
Upvote 0
Try selecting the range then running this macro

Code:
Sub ChSgn()
Dim c As Range
For Each c In Selection
    c.Value = -c.Value
Next c
End Sub
 
Upvote 0
Press ALT + F11 to open the Visual Basic Editor, select Module from the Insert menu then paste the code into the white space on the right. Press ALT + Q to close the code window.

Select your numbers, press ALT + F8, double click ChSgn
 
Upvote 0
Got all the way to Alt + F8....When I did that, nothing happened except the window came up that allows me to adjust my brightness on my screen....
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top