+ Reply to Thread
Results 1 to 7 of 7

Multiple line cell data to individual cells (multiple columns and rows)

  1. #1
    Registered User
    Join Date
    10-30-2020
    Location
    Louisiana, United States
    MS-Off Ver
    365
    Posts
    17

    Multiple line cell data to individual cells (multiple columns and rows)

    I have a file that comes from a management system and has multiple rows of data in cells with uneven amounts in each column. I need it spread to all be in individual cells. I will attach two images, one is how it comes and one is how I need it. I don't seem to be able to make it happen, the second image is a pic of the original data laid over the excel grid. I also included a sample excel file to use.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by cnskey1; 10-30-2020 at 01:34 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    Do you want the data in A1 and B1 to occur 3 times (for rows 1, 2, and 3), or just once?

    Pete

  3. #3
    Registered User
    Join Date
    10-30-2020
    Location
    Louisiana, United States
    MS-Off Ver
    365
    Posts
    17

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    Actually yes, that would be helpful.

  4. #4
    Registered User
    Join Date
    10-30-2020
    Location
    Louisiana, United States
    MS-Off Ver
    365
    Posts
    17

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    More specifically, since my answer was a bit vague, I would like the data to occur into the blanks below.
    Thanks

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    Perhaps this will be of some help although it isn't complete.
    1. The range of data is converted to a table
    2. Zeros and line feeds (i.e. Alt + Enter) are added to cells such as E4:F4 where only one zero is present in the cell and multiple values are present in C4:D4
    3. The following advanced editor code is applied:
    Please Login or Register  to view this content.
    Credit for the code is given to the linked tutorial video: https://www.youtube.com/watch?v=JMOnr3DOqyk
    Unfortunately something in row 12 of the original data is producing an error so instead of being able to close and load I had to copy the table from power query and paste it into Sheet2.
    Hopefully between the file and video you'll have an idea of how to proceed.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    Added two lines at the beginning to change the data type to text. There was mixed data types in columns 5 and 6 in the source. This allowed to close and load without error.

    Please Login or Register  to view this content.
    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

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Multiple line cell data to individual cells (multiple columns and rows)

    Here is the file with Alan's code applied.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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] Merge multiple columns and rows as individual rows....
    By mainemojo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-05-2019, 03:43 PM
  2. [SOLVED] Extract data from multiple text files into individual columns
    By JonnyEnglish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2017, 09:19 AM
  3. [SOLVED] Separate multiple values in one cell into individual rows
    By shre0047 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2016, 04:31 PM
  4. Replies: 3
    Last Post: 07-19-2015, 03:22 PM
  5. Seperating Multiple Data in a Cell into Single Data Individual Cells
    By sgmgrider in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2015, 11:47 AM
  6. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  7. Replies: 7
    Last Post: 08-16-2010, 11:48 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