ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   remove trailing spaces (https://www.excelbanter.com/excel-discussion-misc-queries/66365-remove-trailing-spaces.html)

les8

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.


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.




Sloth

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.


les8

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.





les8

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.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com