+ Reply to Thread
Results 1 to 4 of 4

Extra Spaces

  1. #1
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190

    Extra Spaces

    Dear Team,

    we have received some data from customer, in that, after each name there is some extra spaces, is there any way to remove ending spaces

    please see the below some samples, till "-" spaces are there, total i have 1 lakh names like that, please help me with solution

    Name
    VIMAL RAJ M -
    CHANDRAKALA B -
    DEEPA GOMEZ -

    Regads
    Vimalakar

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Extra Spaces

    Hi use function
    Please Login or Register  to view this content.
    If it will not help send the sample of data in excel file
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Extra Spaces

    Assuming your data is starting in A1.

    In B1 and drag down: =TRIM(SUBSTITUTE(SUBSTITUTE(A1,CHAR(160),""),"-",""))

    Oh by the way, did you find your answer in this thread, as it still is not been marked as "Solved"!

    http://www.excelforum.com/excel-gene...13#post2912413

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Extra Spaces

    depends on the space there are more than one type! if its just a normal few spaces ,select the column,then use text to columns ,fixed width.
    click next until you see the preview ,double click any break lines to remove them,click finish
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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