+ Reply to Thread
Results 1 to 5 of 5

Unable to remove the "space" at the end of text in a cell

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Question Unable to remove the "space" at the end of text in a cell

    I've tried using Trim and also Text to Columns. Some cells in the food column have spaces at the end of the text and I can't figure out how to remove them. Trim and Text to Columns will remove some, but strangely not all of them. Any suggestions? I'm actually using this as a .csv file which excelforum will not permit me to upload but I've saved it here as an xlsx which seems to have the same issue.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Unable to remove the "space" at the end of text in a cell

    The space is a non-breaking space, CHAR(160).
    one way to remove it using a help column

    Please Login or Register  to view this content.
    Or use CTRL+H
    enter ALT+0160 via numeric keypad
    replace with nothing.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Unable to remove the "space" at the end of text in a cell

    That is space with char(160). To remove automatically, use Find And Replace (Ctrl-H)
    * First, at one cellthat contains space, press F2
    * Hold shift, left arrow, Ctrl-C (Copy the space), Esc
    * Ctrl-H
    Find what: press Ctrl-V (past the space)
    Replace with: Leave blank (type nothing)
    Replace All

    Hope this help!
    Highlight the column
    Quang PT

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Unable to remove the "space" at the end of text in a cell

    Duplicate post!!!!

  5. #5
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Unable to remove the "space" at the end of text in a cell

    Wow -- you guys rock. I used the first solution which works perfectly. Thank you, sincerely!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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