+ Reply to Thread
Results 1 to 9 of 9

How do I separate multiple values in one cell in to multiple new cells?

  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    Sweden
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    4

    Question How do I separate multiple values in one cell in to multiple new cells?

    I have encountered a problem while working with large lists in Excel. I have written multiple values in one cell, separated by line break, but now i need to separate these values into separate cells and i have no idea how to do this in a relatively easy way. My only solution right now is to just write everything by hand again but it is a really big spreadsheet so I would be very thankful if someone knew a function that could take me around this problem. To further illustrate my problem here is an attachment:


    workbook:

    line break problem.xlsx
    Attached Files Attached Files
    Last edited by boxedIn; 10-01-2014 at 08:01 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Please post a sample workbook rather than a pdf file (or a picture).

    Gut reaction is that it might require VBA. Do you want a macro/VBA solution?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-29-2014
    Location
    Sweden
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    4

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Okay I updated the post with a workbook.
    I would prefer to have a solution at a single cell range because I'm not really an experienced user of the program. But if you have time I am willing to have both a large scale solution and one on a single cell range.

  4. #4
    Registered User
    Join Date
    09-29-2014
    Location
    Sweden
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    4

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Bump no response

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: How do I separate multiple values in one cell in to multiple new cells?

    The new line character in your data is CHAR(10). So, you can use a formula to change that to something else: C3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you then Copy and Paste Special | Values into the next column, you can then use Text to Columns with a semi-colon separator to copy them to individual cells. Once they are in separate cells, you can use Copy and Paste Special | Transpose to get them into columnar format.

    Bit tedious, but it works. If you want to do more than a couple of cells at a time, it would make sense to automate it with VBA.

    Regards, TMS

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: How do I separate multiple values in one cell in to multiple new cells?

    And, if you want the code:

    Please Login or Register  to view this content.

    To use it, press Alt-F11 to open the VB Editor. Insert a new module and copy and paste the code into the window. Press F5 to run the code.

    Regards, TMS

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Thanks for the rep.

  8. #8
    Registered User
    Join Date
    09-29-2014
    Location
    Sweden
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    4

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Thank you very much! Now I don't have to do a monkey's job! I'm sure I will have lots of fun with this new knowledge so thanks again

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: How do I separate multiple values in one cell in to multiple new cells?

    Glad I could help you move up the evolutionary scale

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Splitting Cells with multiple values into separate rows
    By dracon6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2014, 12:53 AM
  2. vlookup return multiple values into separate cells
    By hmm321 in forum Excel General
    Replies: 5
    Last Post: 04-05-2012, 12:59 AM
  3. Replies: 2
    Last Post: 01-09-2012, 02:36 PM
  4. How to separate multiple cells values in an email
    By marchew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2011, 01:32 AM
  5. Return multiple values in separate cells
    By fg2009 in forum Excel General
    Replies: 5
    Last Post: 07-21-2009, 09:11 AM

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