Removing a space within a cell

J

JERRY8

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?
 
A

Andy Brown

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
 
D

Dave Peterson

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.
 
Top