+ Reply to Thread
Results 1 to 5 of 5

Need formula to remove double space

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    london
    MS-Off Ver
    Excel 2003, 2010
    Posts
    27

    Need formula to remove double space

    Hello I have a list of names that i need to remove double spaces between each word so there is only one space between each word any help is apperciated

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Need formula to remove double space

    Unlike Rtim or Ltrim..
    TRIM function can remove spaces from .. Left Right and Double space in between Words.. in a cell..
    Try
    Formula: copy to clipboard
    =TRIM(A1)
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Need formula to remove double space

    This will remove all the double spaces.

    =TRIM(SUBSTITUTE(SUBSTITUTE(A1," ","*"),"*"," "))
    Please click 'Add reputation', if my answer helped you.

  4. #4
    Registered User
    Join Date
    09-03-2013
    Location
    london
    MS-Off Ver
    Excel 2003, 2010
    Posts
    27

    Re: Need formula to remove double space

    =TRIM(SUBSTITUTE(A1," ","*")) worked but for some reason it doesnt trim all the values I had to do trim first then substitute

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Need formula to remove double space

    you could also do it without a formula, by using the replace and find option (Ctrl+H) and finding " " (2 spaces) and replacing them with " " (one space). maybe do this again if there are instances with 3 spaces (first time 3 becomes 2, second time 2 becomes 1)
    When I say semicolon, u say comma!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to remove middle space in 8 figure postcodes
    By David_Haycock in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2013, 10:03 AM
  2. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  3. Replies: 0
    Last Post: 09-17-2012, 11:56 AM
  4. replace double space with single space within a range
    By erikd80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2011, 01:20 PM
  5. [SOLVED] How do I remove a blanck space from the beginning of a formula?
    By kan2953 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2005, 01:38 PM

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