+ Reply to Thread
Results 1 to 18 of 18

Removing breaking space after names in cell

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Removing breaking space after names in cell

    I just want to remove a breaking space I have after all the names in one cell.
    So for example, a cell has
    Mary Jane
    Ashley Kate
    Joe Bob

    in one cell and there's a breaking space as shown, how do I remove that breaking space only? I only want to remove that breaking space after all the names in each cell for an entire column (not any of the spaces or breaking space between each name).
    Last edited by shockwavemasta; 06-11-2014 at 09:03 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Removing breaking space after names in cell

    whats a breaking space - cant see anything in the example

    if you mean spaces before or after the text - use =TRIM()
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    A breaking space is basically a new line space (alt+enter). Trim does not work because it trims all the spaces between each breaking space of the names.
    so my cell currently looks like this:

    Mary Jane (breaking space)
    Bob Joe (breaking space)
    Evans Ron (breaking space)
    (breaking space here)
    cellexample.png
    Last edited by shockwavemasta; 06-11-2014 at 09:50 AM.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    Instead of TRIM use this:

    =SUBSTITUTE(A1,CHAR(160),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    Still does not fix the problem because it deletes the breaking spaces in between the names.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Removing breaking space after names in cell

    Hi,

    =SUBSTITUTE(A1,CHAR(10),"",LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),"")))


    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  8. #8
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    Attached workbook:
    test.xlsx

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    Try this

    =LEFT(A1,LEN(A1)-1)

  10. #10
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    It's the same output as before.

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Removing breaking space after names in cell

    Quote Originally Posted by shockwavemasta View Post
    It's the same output as before.
    Sorry - can you clarify to whom you were replying?

    Regards

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    No, it is not. See it on "After" sheet.
    Attached Files Attached Files

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

    Re: Removing breaking space after names in cell

    =IF(ISNUMBER(SEARCH(CHAR(10),A1)),SUBSTITUTE(A1,CHAR(10),"",LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),""))),A1)
    if a single name has always a char 10 at the end then you can leave of the if part
    just
    =SUBSTITUTE(A1,CHAR(10),"",LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(10),"")))
    mind you i cant see why
    =LEFT(A1,LEN(A1)-1) as suggested above by Alkey wouldn't work
    unless in your original there are some spaces after the last char 10
    =LEFT(TRIM(A1),LEN(TRIM(A1))-1)
    Last edited by martindwilson; 06-11-2014 at 11:04 AM.
    "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

  14. #14
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    To everybody:
    I'm sorry it still doesn't work. For (martin and alkey), when I paste in that formula it leaves me with a long chain of words and not what you have shown. I copied the same formula into your sheet and it came out with the names connected in one line. Same for X0R LX (on it not working).
    cellexample.png
    Last edited by shockwavemasta; 06-11-2014 at 11:11 AM.

  15. #15
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    Quote Originally Posted by shockwavemasta View Post
    To everybody:
    I'm sorry it still doesn't work. For (martin and alkey), when I paste in that formula it leaves me with a long chain of words and not what you have.
    After you entered formula click on Wrap Text on the ribbon.

  16. #16
    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: Removing breaking space after names in cell

    You need to wrap text in the cell with the formula ...
    Entia non sunt multiplicanda sine necessitate

  17. #17
    Registered User
    Join Date
    06-11-2014
    Posts
    7

    Re: Removing breaking space after names in cell

    Quote Originally Posted by AlKey View Post
    After you entered formula click on Wrap Text on the ribbon.
    Works, thanks!

  18. #18
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing breaking space after names in cell

    You're welcome and thank you for the feedback!
    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).
    Last edited by AlKey; 06-11-2014 at 11:47 AM.

+ 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. removing space in any cell
    By romandotcom in forum Excel General
    Replies: 5
    Last Post: 12-21-2012, 03:12 AM
  2. [SOLVED] Removing a space at the start of a cell...
    By Finalfrontier1976 in forum Excel General
    Replies: 8
    Last Post: 05-15-2012, 11:34 AM
  3. Removing space in a cell
    By LaserDance in forum Excel General
    Replies: 3
    Last Post: 10-04-2010, 03:56 PM
  4. Removing space in cell
    By hottxboi16 in forum Excel General
    Replies: 3
    Last Post: 10-30-2006, 12:27 PM
  5. removing a space between words in a cell
    By JenBasch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2005, 08:05 PM

Tags for this Thread

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