Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
move '-' from back to front???
I often get receive data in the form 100- which tells me that the value is negative 100. In order to use this data properly i need to have the '-' at the front so it can be treated as a number. Can anyone tell me how i can create a macro to do this - it would be much appreciated ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ ~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
move '-' from back to front???
Jack,
This code does it for the active cell. Just adapt to the range of cells applicable With ActiveCell .Value = Right(.Value, 1) & Left(.Value, Len(.Value) - 1) End With -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "jack27" wrote in message ... I often get receive data in the form 100- which tells me that the value is negative 100. In order to use this data properly i need to have the '-' at the front so it can be treated as a number. Can anyone tell me how i can create a macro to do this - it would be much appreciated ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ ~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
move '-' from back to front???
With your data in A1 enter into B1 =LEFT(A1,LEN(A1)-1)*-1
and copy down then Copy Col B to Col B using Paste-Special -Values, OK HTH "jack27" wrote in message ... I often get receive data in the form 100- which tells me that the value is negative 100. In order to use this data properly i need to have the '-' at the front so it can be treated as a number. Can anyone tell me how i can create a macro to do this - it would be much appreciated ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ ~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
move '-' from back to front???
Take a look he
http://www.mcgimpsey.com/excel/postfixnegatives.html In article , jack27 wrote: I often get receive data in the form 100- which tells me that the value is negative 100. In order to use this data properly i need to have the '-' at the front so it can be treated as a number. Can anyone tell me how i can create a macro to do this - it would be much appreciated |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
move '-' from back to front???
On Sun, 7 Dec 2003 08:25:21 -0600, jack27
wrote: I often get receive data in the form 100- which tells me that the value is negative 100. In order to use this data properly i need to have the '-' at the front so it can be treated as a number. Can anyone tell me how i can create a macro to do this - it would be much appreciated If you have Excel 2002, you can use the Data/Text to Columns wizard --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Printing a two spreadsheets front and back | Excel Discussion (Misc queries) | |||
print front and back | Excel Worksheet Functions | |||
Excel Front end Acces Back end | Excel Discussion (Misc queries) | |||
I can not get excel to print on front and back can anyone help me. | New Users to Excel | |||
How do I print two worksheets front and back? | Excel Discussion (Misc queries) |