+ Reply to Thread
Results 1 to 3 of 3

splitting multile lines in one cell into columns

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Colchester, Essex
    MS-Off Ver
    Excel 2010
    Posts
    2

    splitting multile lines in one cell into columns

    I have a database with 8000 erecords. Some columns have cells with multiple lines of text, it looks alike a alt+enter carriage return, but there is no 'charachter' for the carriage return. I want to seperate the mulitple lines into unique columns, but can't figure out how to do it.

    I have attached a single line of the database in a zip file - I really only need to separate column 'M' these are contact names and I want to have each name in a separate column.

    Can anyone help, very urgent, will pay small fee if someone can solve this?
    Thanks in advance.

    Martin Smith
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: splitting multile lines in one cell into columns

    The contact names appear to be in column K - you can split these type of entries with Chr(10)
    Please Login or Register  to view this content.
    See attached workbook
    Attached Files Attached Files
    Last edited by smuzoen; 02-11-2012 at 06:28 AM.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  3. #3
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: splitting multile lines in one cell into columns

    Only other comment here would be that it sometimes depends on how the data is entered in the sheet in the first place; if it is being entered directly then using the split function as Anthony has shown will work fine. But if your data is imported, added via code or otherwise manipulated it can sometimes also have chr(13) characters in it. You could put in another check for chr(13) as shown or you could "manually" check for both like this:

    Please Login or Register  to view this content.
    The above is doing "manually" what the Split function does and checks for both chr(10) and chr(13). To run: paste it into the sheet with your data, select the column you want to split out and it will write the data to the next available column in that row (which means you can select any column and split out whatever is in multiple lines across your sheet).

    Hope that helps.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

+ 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