+ Reply to Thread
Results 1 to 2 of 2

Splitting a row of multiple columns into multiple rows

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Splitting a row of multiple columns into multiple rows

    Hello,

    I need help doing the following in Excel 2010. any help is greatly appreciated! I have a spreadsheet that currently contains multiple groups, each group is listed in a row. The group name is always listed in column A and members of the group are listed in columns B through.... AA or sometimes AP depending pon how many members there are in each group...

    Group1 Member11 Member12 Member13 Member14, ... Member1N
    Group2 Member21 Member22 Member23
    Group3 Member31 Member32..
    GroupR MemberR1 MemberR2... MemberR3 MemberR4

    I would like to rearrange the data as follows.

    Group1 Member11
    Group1 Member12
    Group1 Member13...
    Group1 Member1N
    Group2 Member21
    Group2 Member22
    Group2 Member23
    Group3 Member31
    Group3 Member32...
    GroupR MemberR1
    GroupR MemberR2
    GroupR MemberR3
    GroupR MemberR4

    In other words, I would like to take the group name and then pair it with each of its member and make that a separate row for each pair.

    Thanks in advance for lal your Help!

    Albert

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Splitting a row of multiple columns into multiple rows

    'ROWS TO COLUMNS
    Here's a macro for expanding rows of data to multiple rows parsing out the values in the row while duplicating the header row as categories. There's a sample workbook too you could drop your data into and test it out.

    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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