deleting spaces

  • Thread starter Continental Translations
  • Start date
C

Continental Translations

In a column of cells, tha majority of cells have spaces before the text. As
there are over 500 cells, is there any easy way to delete these spaces? As
there are spaces in between words within these cells, I don't want to delete
all spaces, but just the first one which comes in front of the text.
 
R

Ragdyer

You could try using a "helper" column with a formula to eliminate leading
and trailing spaces.
Then, you delete the formula, and leave the revised data behind.

With data starting in A1, enter this in B1:

=TRIM(A1)

Now, select B1, and double click on the "fill handle" (little black square)
in the lower right corner of the selected cell.

This will copy the formula down column B, as far as there is data in column
A.

Now, while column B is *still* selected, right click in the selection and
choose "Copy".
Right click *again* in the selection, and choose "PasteSpecial".
Choose "Values", then <OK>.

You now have column B with your revised data, where you may delete the
original column if desired.
 
Top