I have a file with one column of numbers. All of the numbers have a space after the last digit. Which will not allow me to do what i want with the data. Is there anyway to automate the removal of the spaces?
I have a file with one column of numbers. All of the numbers have a space after the last digit. Which will not allow me to do what i want with the data. Is there anyway to automate the removal of the spaces?
Removed my post
Last edited by Huron; 11-18-2009 at 03:03 PM. Reason: Better solution already posted
Alternative to Find & Replace suggested in the link:
Enter a 0 in a cell, any empty cell will do.
Copy the 0
Select your numbers with trailing spaces
Click Edit - Paste Special and tick the Add option
Hit OK
Viola. All cells are now numbers where before they were text.
PS @ Huron, no need to retract a post just because you think someone else's is better. Ultimately, it's the OP who decides which solution is "best". But that depends on such a lot of things that I find it useful to choose from as many alternatives as possible. So, why not put it back?![]()
Last edited by teylyn; 11-18-2009 at 03:56 PM.
My suggestion was to enter the formulainto another column (assuming the numbers are in column A), copy this down, then copy and Paste Special - Values over the original numbers.![]()
=VALUE(TRIM(A1))
This is a lot slower than the Find / Replace method.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks