Removing a space within a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I exported data that automatically adds a space before the value in each
cell. How do I remove the space without clicking in each individual cell and
deleting the space?
 
I exported data that automatically adds a space before the value in each
cell. How do I remove the space without clicking in each individual cell and
deleting the space?

Use =TRIM(A1)

or

=RIGHT(A1,LEN(A1)-1)

Copy the results, then Edit -- Paste Special (Values).

Rgds,
Andy
 
Another way:

Select your data (single column at a time)
data|text to columns
fixed width
remove any lines that excel guessed
plop it right back where you got it.

This trims both the leading and trailing, but leaves internal spacing alone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top