+ Reply to Thread
Results 1 to 5 of 5

split delimited data into rows - how???

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    Singapore, Singapore
    MS-Off Ver
    2010, 2007
    Posts
    13

    split delimited data into rows - how???

    Hi everybody,

    Anybody have any formuals or tools I can use to simplify a manual work?

    What I have now is a order list by sorted by name, however all the orders are consolidated into one single cell.
    I would like to have all the products sorted into one product one cell.

    Basically what i have is displayed in Picture A,
    Picture A.PNG
    and what I want to transform Picture A to is in Picture B.
    Picture B.PNG

    Right now I am copying and pasting it one by one which is very tedious and takes up alot of time as I have a few hundred orders to do.
    If anybody have any idea how I can do it with a shortcut, it would be a great help.

    Thank you!!!

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: split delimited data into rows - how???

    My solution suggestion is VBA.
    Would you like a picture answer?
    Attach a small sample Excel workbook no picture.
    Best Regards,
    Maras.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: split delimited data into rows - how???

    Hi,

    1. I would use this formula to arrange the values horizontally,
    =SUBSTITUTE(A1,CHAR(10)," ")

    2. Use text to column to seperate them into columns

    3. Use the copy-->paste special ----> transpose to align them vertically.

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: split delimited data into rows - how???

    Hi elizevonne,

    Since you've asked for formulas or tools, this can easily be achieved using VBA. Check attached sample file

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: split delimited data into rows - how???

    And here is another means to accomplish the results. Use Power Query. Here is the Mcode

    Please Login or Register  to view this content.

    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    Name Products Ordered
    2
    Tom Apple
    3
    Tom Banana
    4
    Tom Cherry
    5
    Tom Dragonfruit
    6
    **** Apple
    7
    **** Fries
    8
    **** Mango
    9
    **** Cherry
    10
    Harry Cherry
    11
    Harry Banana
    12
    Harry Fries
    13
    John Mango
    14
    John Drqgonfruit
    Sheet: Sheet2
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Split Delimited nth Data into New Rows/columns
    By adeel1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2018, 01:55 AM
  2. Split function won't split all delimited values
    By quetzalc0atl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2017, 11:49 AM
  3. Replies: 16
    Last Post: 04-26-2017, 02:26 AM
  4. Delimited Data - Columns and Rows
    By Arch88 in forum Excel General
    Replies: 1
    Last Post: 06-01-2016, 07:11 AM
  5. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  6. coma delimited data in rows, Help
    By jayeomer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 04:46 PM
  7. Split forward slah delimited column to rows
    By Abu-Dina in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2012, 05:50 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