+ Reply to Thread
Results 1 to 5 of 5

Split data in cell and copy whole row

  1. #1
    Forum Contributor
    Join Date
    03-02-2018
    Location
    england
    MS-Off Ver
    2016
    Posts
    156

    Split data in cell and copy whole row

    Hi all,

    I have a workbook that I want to split the cells in column L. Some data in column L have line breaks while some doesn't, what I want to achieve is to split any cell in column L with line breaks to a new row with the same row information except column L

    Also column J will change depends on how many line breaks split, like if there's 3 line breaks then divide it by 3.

    Please see attachment for better explanation.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Split data in cell and copy whole row

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-02-2018
    Location
    england
    MS-Off Ver
    2016
    Posts
    156

    Re: Split data in cell and copy whole row

    @ jindon

    Thanks it works like a charm on the workbook I attached, but when I try to use this on my main workbook it keeps showing an overflow error please see below attachment thanks.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Split data in cell and copy whole row

    Change to
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-02-2018
    Location
    england
    MS-Off Ver
    2016
    Posts
    156

    Re: Split data in cell and copy whole row

    @Jindon

    Thanks I code works great.

+ 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. Split cell and copy row down
    By officeworker3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2018, 09:05 AM
  2. Split cell contents and copy adjoing cell next to each resulting row.
    By vanman100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2017, 02:04 PM
  3. Replies: 4
    Last Post: 01-23-2017, 08:10 AM
  4. [SOLVED] Split cells before and after >> and copy the data to column A +B
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2017, 12:58 PM
  5. [SOLVED] split and copy data
    By Amalaswinta in forum Excel General
    Replies: 2
    Last Post: 02-18-2015, 10:21 AM
  6. How do I split up data and copy it to a new workbook?
    By bananajelly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2014, 08:18 PM
  7. Split cell data into multiple new rows and copy other column values
    By jooga in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-01-2010, 02:30 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