Macro to clean cells and convert text to number

Hi EE,

Please refer to attached file. The content is the result of importing data from another application.
I´ve been trying to convert text to number on column E, via various methods (cell formatting, TRIM, CLEAN formulas, etc ). Nothing has worked. Then I discovered something, that may what´s causing the problem: with cursor on cell E1, if I press F2 and then click on the formula bar, I notice that the cursor blinks 2 or more positions to the right of the text. I conclude that there is garbage there, which is preventing the above mentioned method to work as expected.

So, I think a macro would help to do the job. I kindly ask for your help with the macr, or other effective way to deal with this issue. Book1.xls
capterdiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StephenJRCommented:
What about a formula?

=TRIM(SUBSTITUTE(E1,CHAR(160),""))
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nutschCommented:
Easiest way to do without a macro, select the last "empty" character in you, copy it with Ctrl+C, do Ctrl+H to do a find replace, paste your character using ctrl+V and replace that by nothing.

You're done.

T
0
capterdiAuthor Commented:
nutsch:

Thank you for your cooperation. I rather prefer a formula, so I can quickly copy-paste where it´s needed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.