+ Reply to Thread
Results 1 to 4 of 4

Splitting Cells with Line Breaks

  1. #1
    Registered User
    Join Date
    03-13-2008
    Posts
    1

    Splitting Cells with Line Breaks

    I was sent an Excel xls file where the Address column consists of up to 3 address lines stacked on top on each other - all in one cell. If there is more than one line in a cell, then all but the last line will have a square-cylinder looking character to the right of it. If you right-click the cell and select Format Cells, the Sample box has the lines separated by two square characters. If you click the Alignment tab and, in Text Control, uncheck the Wrap text, and click OK, then the lines combine into a single line in the cell, separated by the two square-characters. These characters don't appear to be copyable, so that if you do Data - Text to Columns - Delimited - Delimiter Other, it doesn't appear to work to paste the copied square character. Are these what they call "line breaks"? If so, how can they be gotten rid of, and the lines be put into separate columns? The reason for doing this is so they can be exported into a CSV or tab-delimited file.
    Attached Files Attached Files
    Last edited by homersf; 03-13-2008 at 12:46 PM. Reason: To attach an example file.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    This may or may not work......

    in the text to columns > delimited dialog, click in the "other" option, and enter the delimiter character as ALT 010.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon homersf

    There have been a couple of posts along these lines this year. Do either of these two help :

    http://www.excelforum.com/showthread.php?t=629978
    http://www.excelforum.com/showthread.php?t=630826

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    homersf,

    Please read forum rules and message to cross posters below and then add the link to the other excel forum where you've posted the same question

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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