Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
les8
 
Posts: n/a
Default remove trailing spaces

I have imported a file that has an undetermined number of spaces after a text
entry. I need to strip those spaces out so my Vlookup will work. Really
appreciate any help.

Example
Cell A1 - contents Z01000 (plus 3 blanks) need to have just Z01000.
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default remove trailing spaces

Hi

Try a helper column with
=TRIM(A1)
in it.

Hope this helps.
Andy.

"les8" wrote in message
...
I have imported a file that has an undetermined number of spaces after a
text
entry. I need to strip those spaces out so my Vlookup will work. Really
appreciate any help.

Example
Cell A1 - contents Z01000 (plus 3 blanks) need to have just Z01000.



  #3   Report Post  
Posted to microsoft.public.excel.misc
les8
 
Posts: n/a
Default remove trailing spaces

Thank you very much. It worked and I am back in business.


"Andy" wrote:

Hi

Try a helper column with
=TRIM(A1)
in it.

Hope this helps.
Andy.

"les8" wrote in message
...
I have imported a file that has an undetermined number of spaces after a
text
entry. I need to strip those spaces out so my Vlookup will work. Really
appreciate any help.

Example
Cell A1 - contents Z01000 (plus 3 blanks) need to have just Z01000.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default remove trailing spaces

You can use Find and Replace. Put a space in find and nothing in replace.

"les8" wrote:

I have imported a file that has an undetermined number of spaces after a text
entry. I need to strip those spaces out so my Vlookup will work. Really
appreciate any help.

Example
Cell A1 - contents Z01000 (plus 3 blanks) need to have just Z01000.

  #5   Report Post  
Posted to microsoft.public.excel.misc
les8
 
Posts: n/a
Default remove trailing spaces

Appreciate your suggestion. Thanks.

"Sloth" wrote:

You can use Find and Replace. Put a space in find and nothing in replace.

"les8" wrote:

I have imported a file that has an undetermined number of spaces after a text
entry. I need to strip those spaces out so my Vlookup will work. Really
appreciate any help.

Example
Cell A1 - contents Z01000 (plus 3 blanks) need to have just Z01000.



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
Remove spaces between words Heather Tavitian Excel Discussion (Misc queries) 2 October 1st 05 01:47 AM
how do I remove empty spaces trailing a text string? Need_Help Excel Worksheet Functions 2 June 7th 05 12:13 AM
How do you remove excess spaces from an Excel field? sarah_jane Excel Discussion (Misc queries) 1 June 1st 05 08:15 AM
Removing trailing spaces from cells ? Don Guillett Excel Worksheet Functions 0 April 10th 05 03:32 PM
remove spaces in text in excel GnarlyCar Excel Discussion (Misc queries) 3 February 1st 05 05:02 PM


All times are GMT +1. The time now is 11:36 PM.

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

About Us

"It's about Microsoft Excel"