+ Reply to Thread
Results 1 to 4 of 4

Macro to re-Arrange data based on 2 columns values

Hybrid View

hisham2k11 Macro to re-Arrange data... 09-22-2011, 01:41 AM
StephenR Re: Macro to re-Arrange data... 09-22-2011, 04:39 AM
hisham2k11 Re: Macro to re-Arrange data... 09-22-2011, 05:06 AM
hisham2k11 Re: Macro to re-Arrange data... 09-22-2011, 12:53 PM
  1. #1
    Registered User
    Join Date
    09-22-2011
    Location
    hyderabad,India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Unhappy Macro to re-Arrange data based on 2 columns values

    I need help in achieving the below scenario using Macro or any other alternative:
    I have data in a sheet whose cloumn A contains teams in random order and ColumnB contains its members.
    ColumnA CloumnB
    team1 Monty1
    team1 Javier
    team2 Alex
    team3 Manish
    team1 Daniel
    team2 Howdy
    team1 Ballex
    team1 hunter
    team2 Banter
    team2 Carter
    team3 Lord
    team3 Sandy
    team3 Zoro

    I need the data to be arranged in sheet1 in just a single column where each Team will be followed by its members just below it.
    ColumnA
    team1
    Monty1
    Javier
    Daniel
    Ballex
    hunter
    team2
    Alex
    Howdy
    Banter
    Carter
    team3
    Manish
    Lord
    Sandy
    Zoro

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Macro to re-Arrange data based on 2 columns values

    Why not just sort by column A and then the names will be grouped by team?

  3. #3
    Registered User
    Join Date
    09-22-2011
    Location
    hyderabad,India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to re-Arrange data based on 2 columns values

    Quote Originally Posted by StephenR View Post
    Why not just sort by column A and then the names will be grouped by team?
    Sorting isnt a solution here.The solution is just a part of bigger picture.So in this case its exactly how we need the data to be placed in just 1 column so that we can do other things relevant to it.

  4. #4
    Registered User
    Join Date
    09-22-2011
    Location
    hyderabad,India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to re-Arrange data based on 2 columns values

    Any alternatives please?

+ 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