+ Reply to Thread
Results 1 to 11 of 11

Split Column D to separate Lines and duplicate the rest of the data related to that line

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Split Column D to separate Lines and duplicate the rest of the data related to that line

    I am trying to figure out a more automated way to split codes in column D that are separated by a comma. I would like them split to individual lines but also include the rest of the column data, duplicating it essentially, into those lines.

    I have provided sample data with the desired output.

    I am sure there is a way but never came across in thsi situation.
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    This could be done with VBA. Would that work for you?

    BSB

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,708

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    Very difficult to split the value in D5 by the comma, as there aren't any.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    @Fluff, you beat me to it!

    BSB

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,708

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    I couldn't figure out why textsplit wasn't working.

  6. #6
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    So I got it solved actually much easier than I had thought through powerquery by splitting the values by commas and unpivoting the data....thank you guys....please do not any more work on this.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    Removed by FR.
    Last edited by FlameRetired; 10-27-2022 at 06:23 PM.
    Dave

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,404

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    shorter version
    Please Login or Register  to view this content.
    Name Date Location Code
    Jerry Steven
    22/01/2022
    Here
    2525
    Jerry Steven
    22/01/2022
    Here
    5256
    Jerry Steven
    22/01/2022
    Here
    52565
    Larry Barry
    23/01/2022
    There
    265
    Larry Barry
    23/01/2022
    There
    255
    Larry Barry
    23/01/2022
    There
    256
    Mary larry
    25/02/2055
    Overthere
    265

  10. #10
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    Wow thank you guys...you guys are awesome!

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Split Column D to separate Lines and duplicate the rest of the data related to that li

    my pleasure
    if you are happy mark thread as Solved, thanks

+ 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. Replies: 5
    Last Post: 10-11-2021, 09:17 AM
  2. Line Graph - unable to split lines up to show separate data
    By chris.smith93 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-05-2021, 04:38 AM
  3. [SOLVED] Separate a statement that utilizes Split(), into 2 or more separate lines.
    By excelicus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2018, 05:17 AM
  4. [SOLVED] split one column data into two separate columns
    By alipezu in forum Excel General
    Replies: 1
    Last Post: 04-17-2016, 03:29 AM
  5. Replies: 3
    Last Post: 04-17-2014, 09:50 PM
  6. Replies: 3
    Last Post: 04-11-2012, 11:00 AM
  7. split data in one column into two separate ones
    By C.j. in forum Excel General
    Replies: 6
    Last Post: 03-21-2012, 02:28 PM

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