How to remove empty spaces in Cells

I have a column about 80 cells long. Each cell contain just a single word. But there are some spaces before and after each word.

How can I remove the spaces in each cell, in excel 2013.
rdefinoAsked:
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.

byundtMechanical EngineerCommented:
Try a formula like:
=TRIM(SUBSTITUTE(A1,CHAR(160)," "))

ASCII character 160 is the non-breaking space, and is commonly found in data imported from the web or other computer systems. It is not removed by TRIM. The SUBSTITUTE function converts it to a regular space. The TRIM function then removes leading and trailing spaces.
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
byundtMechanical EngineerCommented:
You can alternatively use the Data...Text to Columns menu item.

1.  Select all 80 cells
2.  Open the Data...Text to Columns menu item
3.  Choose Delimited in the first step of the wizard
4.  Choose the Space character in the second step of the wizard. For extra measure, check the Other box too, then click in the field to its right and enter ALT + 0160 using the numeric keypad (not the numbers above QWERTY). Make sure the "Treat consecutive delimiters as one" box is checked.
5.  In the third step of the wizard, select any field that looks blank, and choose "Do not Import".  Click Finish.
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.