trim

G

Guest

I am struggling with Trim. Please can somebody advise me step by step what I
should do to remove an unwanted space from text entries. I have a column
which is approx 2000 rows long, and quite a few of the cells have a space
before the text (ie on the left hand side of the text). I am fairly sure the
work sheet contains imported data , as it is an address data base with quite
a few columns, and all the columns suffer from this problem (they are also
out of sequence across the columns in some cases but I can fix those
individually). I dont know which software the data was was exported from as
I was given the worsheet to cleanse. I think I should perhaps use Clean
first to see if they are actually spaces but I am not sure how to do this
either. Any help very gratefully received please.
 
G

Guest

With the incorrect data in A1, in B1 enter =TRIM(A1)
Copy down for all rows, then copy the range, and paste special values in
column A
 
G

Guest

If your string is in cell A1, and reads " My String" (Without quotes!)

Then to put a trimmed version in another cell use the formula

=Trim(A1)

in the target cell


HTH

Neil
www.nwarwick.co.uk
 
G

Guest

Kassie & Neil
Thank you for your advice - it is so simple, but it has saved me hours and
hours of work.
I am very grateful.
 

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

Similar Threads


Top