+ Reply to Thread
Results 1 to 7 of 7

Using a macro to convert groups of rows to columns

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using a macro to convert groups of rows to columns

    Hi,

    I'm a first timer here

    I have a list of data currently sorted into rows. I have group names and then a number of entries in the group - the number of entries in a group varies from 1 - 10. I need to 'transpose' the data in rows into columns in another worksheet. It's a bit tricky to explain, so I have attached a copy of the spreadsheet for an example. I could do this manually, but it would be a laborious task being that I have a max of 200 names and 75 or so groups.

    Does anyone have any ideas how to go about doing this? In my head I know what I would like the macro to do, but I can't put it into effect.

    Thanks in advance if anyone can help. It would be much appreciated.
    Attached Files Attached Files
    Last edited by LittleLisa; 10-26-2012 at 04:50 AM. Reason: Typos

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Using a macro to convert groups of rows to columns

    Hi,

    can you explain why you want to do this? The original way of arranging data seems more effective... What do you want to do with this data? If you want to see how many "names" are in each "group", you can easily do that with a pivot table.

    edit: Here's what I'm saying in a sample file.
    Attached Files Attached Files
    Last edited by RHCPgergo; 10-26-2012 at 05:15 AM. Reason: added sample file

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a macro to convert groups of rows to columns

    Hi RHCPgergo,

    I've tried the pivot table option too. Tried a few different combinations using the data, but not quite what I was looking for.

    I need this to be able to setup a mail merge, so need the titles across the page.

    Thanks for your reply though.

    LittleLisa

  4. #4
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Using a macro to convert groups of rows to columns

    Hi again,

    I hope this is what you wanted, had quite a lot of work with it. I learned a lot though, so thanks for the opportunity.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-26-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a macro to convert groups of rows to columns

    Hi RHCPgergo,

    OMG! You are amazing!!

    Problem solved.

    Thanks so much for that, you don't know how much trouble you have saved me.

    LittleLisa

  6. #6
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Using a macro to convert groups of rows to columns

    Yay!

    I' m glad it works for you.

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Using a macro to convert groups of rows to columns

    @ LittleLisa

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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