Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
I downloaded some online financial data to excel. One sheet is out of whack.
All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
-- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com (Remove ^^ from email) "Chris T." <Chris wrote in message ... I downloaded some online financial data to excel. One sheet is out of whack. All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
You could also try Data Text to Columns
On 4 May, 06:08, "Peo Sjoblom" wrote: http://www.mvps.org/dmcritchie/excel/join.htm#trimall -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutionswww.nwexcelsolutions.com (Remove ^^ from email) "Chris T." <Chris wrote in ... I downloaded some online financial data to excel. One sheet is out of whack. All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated.- Hide quoted text - - Show quoted text - |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
=--TRIM(A1)
-- David Biddulph "Chris T." <Chris wrote in message ... I downloaded some online financial data to excel. One sheet is out of whack. All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
Thank you very much for the direction. The TrimAll macro was perfect. Thanks
also to all the others that responded - I didn't get around to trying your options, but they probably are just as applicable. "Peo Sjoblom" wrote: http://www.mvps.org/dmcritchie/excel/join.htm#trimall -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com (Remove ^^ from email) "Chris T." <Chris wrote in message ... I downloaded some online financial data to excel. One sheet is out of whack. All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing spaces at the end of numbers
Yes but it won't work if it is a trailing html character
which happens quite often with downloads -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com (Remove ^^ from email) "DaveMoore" wrote in message ups.com... You could also try Data Text to Columns On 4 May, 06:08, "Peo Sjoblom" wrote: http://www.mvps.org/dmcritchie/excel/join.htm#trimall -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutionswww.nwexcelsolutions.com (Remove ^^ from email) "Chris T." <Chris wrote in ... I downloaded some online financial data to excel. One sheet is out of whack. All numbers are registering as text (I used istext to check) and there are two spaces at the end of each number (i.e. 477.5 )-notice 2 spaces before the end parentheses. This keeps me from doing any formulas or calculations with these cells (about 11 columns with 245 rows - thats why I don't want to retype the data). How do I remove the two spaces? Is there a macro? Excel function? I tried =LEFT(C14,FIND(" ",C14,1)), hoping to take the leftmost values before the space, but no go. Any help would be greatly appreciated.- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
removing all spaces | Excel Discussion (Misc queries) | |||
Removing spaces from columns | Excel Worksheet Functions | |||
Removing Spaces from string | Excel Worksheet Functions | |||
removing spaces | Excel Discussion (Misc queries) | |||
removing spaces between the numbers | Excel Discussion (Misc queries) |