+ Reply to Thread
Results 1 to 4 of 4

Remove the spaces in the last string

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Remove the spaces in the last string

    Hi All,
    I got a excel file that has this annoying empty spaces at the end of string. How do I remove it as not all strings are ended with empty spaces? For instance, cell A1 is abc__ and A2 is xyz and A3 is ijk_. The empty spaces deter my Vlookup working correctly, thanks for any tips and guidance.

  2. #2
    Forum Contributor
    Join Date
    07-01-2010
    Location
    United States, Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Remove the spaces in the last string

    Try using Data--> Text To Columns --> Fixed

    This will allow you to move around what's in each cell, i.e. moving the annoying end part into another column.

    Best of luck!

  3. #3
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Remove the spaces in the last string

    Wow, thank you. I will try it out shortly, thanks again.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Remove the spaces in the last string

    You can also use =trim(a1) in col B and extend as needed.
    Trim will remove all space except spaces within the string

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1