A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I remove empty spaces trailing a text string?



 
 
Thread Tools Display Modes
  #1  
Old June 6th, 2005, 11:57 PM
Need_Help
external usenet poster
 
Posts: n/a
Default how do I remove empty spaces trailing a text string?

I have a column with multiple length item numbers and some of the cells
contain "spaces" following the number, i.e. "00014C ". This example shows
that there are 6 text characters plus 4 spaces, I can get rid of the spaces
easily for this example, but when i have a column with thousands of rows each
with different number of text characters and different number of spaces, it's
hard to do. Please help!
  #2  
Old June 7th, 2005, 12:06 AM
EA
external usenet poster
 
Posts: n/a
Default

Have you tried using the 'TRIM' formula? If cell A2="00014C " then in
another cell type: =trim(A2) and you should get "00014C". This will work
even if the spaces are preceeding the field values. Then to save the value,
just copy the trim cell(s), select 'Paste Special...', and select under
'Paste' select 'Values'.

Hope this helps.


"Need_Help" wrote:

I have a column with multiple length item numbers and some of the cells
contain "spaces" following the number, i.e. "00014C ". This example shows
that there are 6 text characters plus 4 spaces, I can get rid of the spaces
easily for this example, but when i have a column with thousands of rows each
with different number of text characters and different number of spaces, it's
hard to do. Please help!

  #3  
Old June 7th, 2005, 12:13 AM
CLR
external usenet poster
 
Posts: n/a
Default

"ASAP Utilities", a free add-in from www.asap-utilities.com includes this as
one of it's standard features.

Vaya con Dios,
Chuck, CABGx3



"Need_Help" wrote in message
...
I have a column with multiple length item numbers and some of the cells
contain "spaces" following the number, i.e. "00014C ". This example

shows
that there are 6 text characters plus 4 spaces, I can get rid of the

spaces
easily for this example, but when i have a column with thousands of rows

each
with different number of text characters and different number of spaces,

it's
hard to do. Please help!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking text boxes Volunteer Mom Publisher 7 November 12th, 2008 01:29 AM
Change font of part of text John Powerpoint 7 March 15th, 2005 10:10 AM
Outline Renee Hendershott Page Layout 2 December 25th, 2004 02:49 PM
Publisher 2002: How to remove empty pages left by deletion of text EmoryW Publisher 5 November 18th, 2004 04:01 AM
How does the "auto" setting work in Paragraph Spacing? Joey General Discussion 9 October 11th, 2004 08:44 PM


All times are GMT +1. The time now is 07:03 PM.


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