+ Reply to Thread
Results 1 to 12 of 12

Splitting multiple column entries into separate rows

  1. #1
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Splitting multiple column entries into separate rows

    Hi all,

    I'm not very well-versed in the syntax of Excel, so please bear with me. I am trying to take each of multiple entries in one column and in one row and split that into several rows (one for each entry in that column) and copy/paste the other column's information into the new rows.

    So, basically, I would like to have a new line with all of the information EXCEPT the stock tickers repeating for each new line. Does that make sense?
    Thanks in advance for any help or guidance!
    Attached Files Attached Files
    Last edited by hebruiser; 05-16-2022 at 11:42 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,417

    Re: Splitting multiple column entries into separate rows

    Non-editable pictures are useless. Read the yellow banner (top) and post a small REPRESENTATIVE sample EXCEL sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Re: Splitting multiple column entries into separate rows

    Hi Glenn,
    Thanks for forcing me to read the instructions. I hope I attached this snippet correctly...I am not as tech savvy as I once was.

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Splitting multiple column entries into separate rows

    Will there be other rows of data under the single row you show in your example file?

  5. #5
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Re: Splitting multiple column entries into separate rows

    Yes. So for each row, I want to have all of the column data that is NOT a stock ticker repeat on a new row. So in effect, this report was run based off of that initial value in the first row. The client would prefer a method to display "verbose" information breaking out that data into different rows for each ticker. So, if you imagine each ticker as it's own row, all of the other data from that example would need to be repeated for each new row. I hope that makes sense.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Splitting multiple column entries into separate rows

    See if the following macro works for you. Note - you can change any of the requirements via the four Const statements.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Re: Splitting multiple column entries into separate rows

    Thank you for taking the time to do this. However, I am not having much luck getting this macro into Excel...because I am old and not so good at numbers. I can write a helluva poem, though!
    Thanks!

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,010

    Re: Splitting multiple column entries into separate rows

    Can also be achieved using Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    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

  9. #9
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Splitting multiple column entries into separate rows

    Quote Originally Posted by hebruiser View Post
    However, I am not having much luck getting this macro into Excel...
    See if this helps...

    HOW TO INSTALL MACROs
    ------------------------------------
    If you are new to macros, they are easy to install and use. To install it, simply press ALT+F11 to go into the VB editor and, once there, click Insert/Module on its menu bar, then copy/paste the above code into the code window that just opened up. That's it.... you are done. To use the macro, go back to the worksheet with your data on it and press ALT+F8, select the macro name (RedistributeData) from the list that appears and click the Run button. The macro will execute and perform the action(s) you asked for. If you will need to do this again in this same workbook, and if you are using XL2007 or above, make sure you save your file as an "Excel Macro-Enabled Workbook (*.xlsm) and answer the "do you want to enable macros" question as "yes" or "OK" (depending on the button label for your version of Excel) the next time you open your workbook.

  10. #10
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Re: Splitting multiple column entries into separate rows

    Thank you Rick! That worked perfectly. Now I have to decide if it's worth it to release this into the client's hands or offer to do this for them once a month.
    Thanks again!

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

    Re: Splitting multiple column entries into separate rows

    Did you try out my solution in post #8?

  12. #12
    Registered User
    Join Date
    05-15-2022
    Location
    NC, USA
    MS-Off Ver
    365
    Posts
    6

    Re: Splitting multiple column entries into separate rows

    Alansidman,
    I have not yet. I am currently gauging the client's "receptiveness" to the VB macro. Thank you!

+ 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. Splitting specific Column into multiple rows
    By swanbot in forum Excel General
    Replies: 3
    Last Post: 04-28-2022, 10:30 AM
  2. running column of dates, sum of separate column entries - last five rows
    By hawkdaddy404 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2019, 02:10 PM
  3. Splitting Cells with multiple values into separate rows
    By dracon6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2014, 12:53 AM
  4. splitting contents of a column to multiple rows
    By jjame0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2013, 03:40 AM
  5. Replies: 4
    Last Post: 03-28-2010, 10:58 AM
  6. Splitting Rows Into Separate Files
    By fredmeister in forum Excel General
    Replies: 0
    Last Post: 11-03-2008, 11:28 AM
  7. [SOLVED] splitting worksheet by column entries
    By Joe in forum Excel General
    Replies: 5
    Last Post: 12-29-2005, 01:35 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