+ Reply to Thread
Results 1 to 9 of 9

Removing unnecessary line breaks after the texts

Hybrid View

  1. #1
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,416

    Re: Removing unnecessary line breaks after the texts

    You could try using Find& Replace (CTRL-H) and in the Find What box hold down the Alt key and type 010 on the numeric keypad (do this twice), leave the Replace box empty, then click Replace All.

    It worked for me in a test sample.

    Hope this helps.

    Pete

  2. #2
    Registered User
    Join Date
    11-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Removing unnecessary line breaks after the texts

    Hello Pete,

    Thanks for your answer. Sorry I wasn't able to tell that the number of trailing line breaks differs from one cell to another. Some cells have only 1 line break, some has 3, some has 5. Is there a quick way to remove all of them using a code?

    - Oliver

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,416

    Re: Removing unnecessary line breaks after the texts

    The procedure I gave you is to remove pairs of line breaks, so you might have to do it twice if you have an odd number to start with.

    The ASCII code is 10 for those line breaks, so you could use a formula with CHAR(10) and SUBSTITUTE, but Find & Replace is quicker.

    Hope this helps.

    Pete

+ 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