+ Reply to Thread
Results 1 to 13 of 13

Transposing a single column to 3 or 4 columns based on ranking

  1. #1
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Transposing a single column to 3 or 4 columns based on ranking

    Valued service providers.
    I request some help in transposing a single column of players to 3 (or 4) columns based on the score (rank) of the individual players, refer the attached example.
    Columns B and C list a number of players and their scores. They need to be transposed to columns F, G and H based on their rank and in the cell order shown. If there are an odd number of players the 1st group may end up as a single or 2 man group shown in the example.
    To add flexibility, the number of players could be up to 150 and the groups could be 3 or 4 man groups.
    I suspect this can be easily solved with a macro, which unfortunately I am not familiar with.
    Thanking you in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Give this a shot. First enter the number of players-per-group in cell F1 (adjust as needed).

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Thanks natefarm for the prompt feedback. It works OK but the players need to be in the reverse order as per my original example, i.e. the top ranked player in cell I12 and the worst ranked player in cell G4, with the remainder in the order shown.
    If there are an odd number of players the 1st group may end up as a single or 2 man group shown in the example.

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Ok, try this. It sorts the players in reverse order, builds the groups, then sorts it back.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    The order looks correct, although not in player# numerical order. However, the seeded draw for a golf comp (say) would have the top three players (group 9) teeing off last, following in descending rank until the worst scores (players) teeing off first (group 1) as shown below. Sorry to be a pain!

    Time Group
    8:00 1 Player 26 Player 25
    8:08 2 Player 24 Player 23 Player 22
    8:16 3 Player 21 Player 20 Player 19
    8:24 4 Player 18 Player 17 Player 16
    8:32 5 Player 15 Player 14 Player 13
    8:40 6 Player 12 Player 11 Player 10
    8:48 7 Player 9 Player 8 Player 7
    8:56 8 Player 6 Player 5 Player 4
    9:04 9 Player 3 Player 2 Player 1

  6. #6
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Ok, new approach. Sorry about all the do-overs.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Tantalisingly close! Can you achieve the order shown above, i.e. player1 in the RH column moving numerically right to left etc. One more shot?

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Transposing a single column to 3 or 4 columns based on ranking

    This should do...
    Attached Files Attached Files
    Last edited by jindon; 06-21-2014 at 09:32 AM. Reason: File replaced: add time slots.

  9. #9
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    That is the correct order jindon. However it breaks down for (say) 28 players. Could you remove the run "button" and the time slots (since the latter may vary) and also add a cell input on the sheet for
    2, 3 or 4 column player groups.
    Cheers!

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Don't understand how you want it.

    Perhaps, someone else can help you.

  11. #11
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Thanks for your perserverence!

  12. #12
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Transposing a single column to 3 or 4 columns based on ranking

    Here ya go.

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Transposing a single column to 3 or 4 columns based on ranking

    That's it natefarm! Good work. I had given up and was about to repost on Commercial. Feel free to take the $$posted.

+ 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. Transposing many rows and columns to one single column
    By dcoyle80 in forum Excel General
    Replies: 5
    Last Post: 10-22-2013, 12:07 PM
  2. [SOLVED] Transposing single row to multiple columns between workbooks
    By crhoads in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 08:24 AM
  3. [SOLVED] Macro for transposing multiple columns into a single row
    By BBExcelusr in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 09-07-2012, 02:24 PM
  4. Transposing one column data to different columns based on their headings
    By bipindurgapal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2012, 06:35 AM
  5. Replies: 1
    Last Post: 10-16-2009, 09:23 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