+ Reply to Thread
Results 1 to 8 of 8

Remove control characters in the cells

  1. #1
    Registered User
    Join Date
    10-25-2004
    Location
    Massachusetts USA
    MS-Off Ver
    Microsoft 365 for Enterprise (Excel Version 2302)
    Posts
    69

    Remove control characters in the cells

    I am trying to upload the data in Excel onto a system converting the data into html format.. As the data has line spaces (due to 'Enter'), it actually is invisible control characters and hence the upload errors out..

    I could see the control characters (small boxes) when I filter the column using Auto filter. As the data is huge, it would be painful to filter each cell having control characters and then delete them..

    Looking for easier ways to either delete the control characters or remove line spaces and make the data continuous para..

    Please help.. thanks a lot.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi there,

    Without seeing the data I'm not sure, but see if any one of the four (probability the third) formulas from here does the trick.

    HTH

    Robert

  3. #3
    Registered User
    Join Date
    10-25-2004
    Location
    Massachusetts USA
    MS-Off Ver
    Microsoft 365 for Enterprise (Excel Version 2302)
    Posts
    69
    I have provided the sample data below..

    ________________
    Cc: Maria Ayala
    Subject: 10-51543944

    User Name: abcded

    Country: USA
    _________________

    appears as (in the filter list box)

    _________________
    Cc: Maria Ayala *Subject: 10-51543944**User Name: abcded**Country:
    USA
    _________________

    [In the above, replace * with square boxes as control characters].. They are nothing but carriage returns.

    I need the below result:

    ________________
    Cc: Maria AyalaSubject: 10-51543944User Name: abcdedCountry: USA
    _________________

  4. #4
    Registered User
    Join Date
    10-25-2004
    Location
    Massachusetts USA
    MS-Off Ver
    Microsoft 365 for Enterprise (Excel Version 2302)
    Posts
    69
    Robert: The fourth example worked in the link you provided...

    Thanks a lot for your help.

  5. #5
    Registered User
    Join Date
    03-07-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Remove control characters in the cells

    can someone send me the formula? I have the same problem and seem to spend a LOT of time removing these boxes... thanks

  6. #6
    Registered User
    Join Date
    03-08-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Remove control characters in the cells

    Can some one provide the formula for this ? i too face the same issue

  7. #7
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Remove control characters in the cells

    @ blackmagickar and flourflngr

    Please start your own thread. See the forum rule #2

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  8. #8
    Registered User
    Join Date
    04-25-2012
    Location
    Sacramento, California, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Lightbulb Re: Remove control characters in the cells

    You can try tis formula

    =CLEAN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,CHAR(127),CHAR(7)),CHAR(160),CHAR(32)),"`","")," ","")))

+ 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