A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro to change sign and then move value



 
 
Thread Tools Display Modes
  #1  
Old February 1st, 2011, 02:35 PM
Lourie Lourie is offline
Member
 
First recorded activity by OfficeFrustration: Mar 2010
Posts: 1
Question Macro to change sign and then move value

I need to change a positive value to become negative value in Excel 2007 and then move the value two cells to the left. This I need to do selectively and repeatedly in a spreadsheet. I create a macro to do this but it does not work as it should.
Ads
  #2  
Old March 15th, 2011, 11:27 PM
tarquinious tarquinious is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Mar 2011
Posts: 34
Default

Quote:
Originally Posted by Lourie View Post
I need to change a positive value to become negative value in Excel 2007 and then move the value two cells to the left. This I need to do selectively and repeatedly in a spreadsheet. I create a macro to do this but it does not work as it should.
In the cell 2 columns to the left you could type in the formula:
=-D2
...(assuming D2 is where the number is) and copy & paste this down, but if you want it to be selective, I'll need a bit more info on what the criteria is to be of any more use to you.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 OfficeFrustration.
The comments are property of their posters.