+ Reply to Thread
Results 1 to 5 of 5

Split Cell containing multiple soft breaks

  1. #1
    Registered User
    Join Date
    07-02-2009
    Location
    Ghent
    MS-Off Ver
    Excel 2010
    Posts
    3

    Split Cell containing multiple soft breaks

    Hello

    Because of historical reasons we have an important excel sheet that has cells containing multiple lines and a cell next to it also with soft breaks containing data that refers to the previous cell. We need to split the soft breaks into different lines.

    It is hard to describe the issue, but it will be most clear with giving an example:

    This is what it looks like at the moment:

    Name Cust 1 Startdate Cust 1 Product A
    Product B
    Product C
    Key A
    Key B
    Key C

    This is what is should look like afterwards:

    Name Cust 1 Startdate Cust 1 Product A Key A
    Name Cust 1 Startdate Cust 1 Product B Key B
    Name Cust 1 Startdate Cust 1 Product C Key C

    As we have about 1000 lines in our sheet I would love to see this automated. Could somebody help me with this?

    Thanks in advance!

    Tim
    Last edited by Bernaar; 10-09-2013 at 12:02 PM. Reason: Issue has been solved

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Split Cell containing multiple soft breaks

    Would dumping the content/result in a different worksheet be acceptable?

    Easier than inserting rows in between the original data
    If you like my contribution click the star icon!

  3. #3
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Split Cell containing multiple soft breaks

    If unpacking into a different worksheet is acceptable, the following code should work

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-02-2009
    Location
    Ghent
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Split Cell containing multiple soft breaks

    Hi OllieB

    Thanks for your quick response. This seems to be working very well!
    We have more columns than in the example, but I'll manage to adjust.

    You just saved us some days of repetitive work ;-)

    Regards

  5. #5
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Split Cell containing multiple soft breaks

    Bernaar, please remeber to click the star icon ("Add Reputation") if you are happy with my contribution

+ 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. Saving to PDF with page breaks so charts aren't split
    By wizgf19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2012, 05:21 PM
  2. Replies: 1
    Last Post: 03-15-2009, 06:08 PM
  3. Hard page breaks being replaced by soft breaks in the wrong place
    By JDavies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2008, 10:28 AM
  4. Hard breaks in text to soft breaks in Excel
    By tbailey in forum Excel General
    Replies: 6
    Last Post: 07-27-2005, 10:05 PM
  5. Hard breaks in text to soft breaks in Excel
    By tbailey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2005, 12:05 AM

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