+ Reply to Thread
Results 1 to 11 of 11

remove extra space after two words

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    remove extra space after two words

    Hi guys,

    i have a question about removing extra space two words.

    i copy raw data when i paste it, they always have space or spaces after words.

    please see the file i have attached.

    i tried =trim but it doesn't work maybe because it's 2 words?

    thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: remove extra space after two words

    use substitute to replace double spaces with single space
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-28-2014
    Location
    Hertford, England
    MS-Off Ver
    Excel 2010,2013
    Posts
    38

    Re: remove extra space after two words

    I don't think its a space that's why TRIM isn't working.

    Please Login or Register  to view this content.
    It's a Unicode 160, where a space is Unicode 32

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: remove extra space after two words

    Ok thats weird, try this, Im copy blank spaces after 2 words and put them in:

    =SUBSTITUTE(A1,"*","")
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: remove extra space after two words

    In B1,

    =TRIM(SUBSTITUTE(A1, CHAR(160), " "))
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: remove extra space after two words

    hi Azumi,
    just tried it and it seems like it will only work when there's only one space after words, do you have solution if there are more than 1 space after words?

    thanks
    Last edited by parkkibum; 04-04-2014 at 04:46 PM.

  7. #7
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: remove extra space after two words

    hi SHG, i just tried that formula, but when i paste the cell as value, it still leaves a blank after words

  8. #8
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: remove extra space after two words

    hi Foundy, i tried that formula but when i paste the cell as a value, it still leaves a space.


    Quote Originally Posted by foundy View Post
    I don't think its a space that's why TRIM isn't working.

    Please Login or Register  to view this content.
    It's a Unicode 160, where a space is Unicode 32

  9. #9
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: remove extra space after two words

    Quote Originally Posted by parkkibum View Post
    hi Azumi,
    just tried it and it seems like it will only work when there's only one space after words, do you have solution if there are more than 1 space after words?

    thanks
    Sorry for late reply, please check my file
    =TRIM(SUBSTITUTE(A1,"*"," "))
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: remove extra space after two words

    Thank you Azumi!!

    it's perfect!


    Quote Originally Posted by azumi View Post
    Sorry for late reply, please check my file
    =TRIM(SUBSTITUTE(A1,"*"," "))

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: remove extra space after two words

    I didn't look at your file.

    Instead of using a formula try this macro.

    The macro at this website will remove all leading/trailing
    and multiple interspersed char 32 space characters.
    It will also remove and/or convert char 160 non breaking
    spaces into standard char 32 space characters. It will
    work on text or numbers and the numbers will be
    converted to true numeric numbers.

    I use this macro dozens of times every single day!
    It's a real time saver.

    http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. How to remove an extra space at the end of the line?
    By EnCECU in forum Excel General
    Replies: 2
    Last Post: 03-01-2014, 04:37 PM
  2. [SOLVED] Remove extra space between two words.
    By Dnyan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:23 AM
  3. Remove extra space from the end of the cell contain text
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2013, 09:55 AM
  4. Excel 2007 : Remove Extra Space
    By Jerseynjphillypa in forum Excel General
    Replies: 2
    Last Post: 11-08-2011, 12:09 PM
  5. Replies: 3
    Last Post: 03-04-2011, 09:31 AM

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