+ Reply to Thread
Results 1 to 2 of 2

Break a data set into multiple rows

  1. #1
    Registered User
    Join Date
    12-13-2018
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    7

    Break a data set into multiple rows

    Hello, I can do some basic stuff with VBA in Excel but I'm stuck on a process and hoping someone here might help.

    I can create a one dimensional array of data a write it to a new row in and existing workbook. Here is the basic process:

    Please Login or Register  to view this content.
    The row single row of data looks like this:
    Smith A1 B1 C1 A2 B2 C2 A3 B3 C3

    This same process can be run again with a new set of data and the result could look like this:
    Smith A1 B1 C1 A2 B2 C2 A3 B3 C3
    Roberts A1 B1 C1 A2 B2 C2 A3 B3 C3

    I need the data to look like this:
    Smith A1 B1 C1
    Smith A2 B2 C2
    Smith A3 B3 C3
    Roberts A1 B1 C1
    Roberts A2 B2 C2
    Roberts A3 B3 C3

    My data set will always look the same. The source for each data set is a Word form where a named person inputs information sets about planned travel e.g., Trip A, Trip B and Trip C
    I don't know if there is a function in Excel that I could run after the single rows are created or it would need to create and input a two dimensional array. If so, what code would I use to write the four data rows for each input.

    Thank you.
    Last edited by alansidman; 12-15-2022 at 11:19 AM.

  2. #2
    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,884

    Re: Break a data set into multiple rows

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    However, if you continue to not use code tags, you can expect to have your thread BLOCKED until you add them yourself.
    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] Data Validation Lists Break When Rows are Deleted
    By Maredon2016 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2016, 05:06 PM
  2. Looking for a macro to break out multiple numbers in one cell into separate rows
    By elbertta in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-26-2015, 05:58 PM
  3. [SOLVED] Return data from multiple line break cells
    By Nick1150 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-30-2014, 05:41 AM
  4. To convert cells with break lines into multiple rows and columns
    By leong6033 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2014, 08:38 PM
  5. break the data into 2 rows with same cell
    By sss047 in forum Excel General
    Replies: 2
    Last Post: 04-12-2011, 07:08 AM
  6. [SOLVED] Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  7. [SOLVED] Automatically Break Multiple Rows to Two Columns
    By chuangbl in forum Excel General
    Replies: 1
    Last Post: 10-04-2005, 10: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