Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tom Q
 
Posts: n/a
Default Need better understanding of TRIM so I can get rid of trailing spa

I imported a listof names to creat labels. All columns have trailing spaces.
I have imported some into Word then done a relace it worked but it was a not
the right solution. I understand TRIM in Excel will get rid of Trailing
spaces. The examples HELP gives is not clear to me. Please help me get rid of
these trailing spaces.

Tom
  #2   Report Post  
Alan
 
Posts: n/a
Default

If you want to delete all spaces the just use Edit Replace 'space'
Replace With 'nothing' Replace All

=TRIM(A1) will remove both leading and trailing spaces except a space
between two words. In a convenient column enter =TRIM(your cell) and drag it
down to the end of the list and then Paste Special Values to lose the
formulas.

However if this list you've imported comes from a web site the spaces may
not be ASCII32, CHAR(32) in XL, but could be ASCII160, CHAR(160) in Xl.
This looks like a normal space but isn't so the TRIM function wont find it.

Try highlighting the whole sheet, go Edit Replace Replace What hold
down the Alt key and type 0160 (nothing will appear in the dialogue box)
Replace with 'nothing' Replace All

Regards,
Alan.
"Tom Q" <Tom wrote in message
...
I imported a listof names to creat labels. All columns have trailing
spaces.
I have imported some into Word then done a relace it worked but it was a
not
the right solution. I understand TRIM in Excel will get rid of Trailing
spaces. The examples HELP gives is not clear to me. Please help me get rid
of
these trailing spaces.

Tom



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need better understanding of TRIM so I can get rid of trailing spa Tom Q Excel Discussion (Misc queries) 1 August 9th 05 10:24 PM
Trim and Keep the Trimmed Data sally t Excel Worksheet Functions 2 July 26th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Trim function aehan Excel Worksheet Functions 3 January 25th 05 12:31 PM
How to use TRIM function Sky Warren Excel Worksheet Functions 3 January 8th 05 05:06 PM


All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"