+ Reply to Thread
Results 1 to 7 of 7

Student scores listed vertically in columns need to be transposed horizontally in rows

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    Student scores listed vertically in columns need to be transposed horizontally in rows

    I have a long vertical list of alphabetized student names with corresponding scores in columns. Each student may not have the same number of scores. I need to arrange the names vertically in columns but the scores need to be listed horizontally (in rows) in different cells. I cannot use macros but only formulas. For example:

    A B
    1 Ana 3
    2 Ana 1
    3 Ana 2
    4 Bert 5
    5 Cathy 3
    6 Cathy 8
    7 Doug 6
    8 Doug 7
    9 Doug 3
    10 Doug 4

    I need to present the data like this:

    C D E F G
    1 Ana 3 1 2
    2 Bert 5
    3 Cathy 3 8
    4 Doug 6 7 3 4

    Any help, please? Remember, I can only use formulas. Thanks.

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    I used this array formula for 2003 vers. of excel

    =IF(ISERROR(INDEX($C$2:$C$11,MATCH(SMALL(IF($B$2:$B$11=$H2,ROW($C$2:$C$11),""),I$1),IF($B$2:$B$11=$H2,ROW($C$2:$C$11),""),0))),"",INDEX($C$2:$C$11,MATCH(SMALL(IF($B$2:$B$11=$H2,ROW($C$2:$C$11),""),I$1),IF($B$2:$B$11=$H2,ROW($C$2:$C$11),""),0)))

    Press Ctrl+shift+enter simultionasly

    look to the file. I similated problem there
    Attached Files Attached Files
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    04-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    Thanks for the quick reply AZ-XL. I am very pleased. I recognize that it is an array formula you used. Could you please tell me if each cell starting from I2 needs the Ctrl+Shift+Enter simultaneous keystrokes individually? Or do I highlight all the cells that have the similar formulas and do the CSE keystrokes at once? Thanks.

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    Quote Originally Posted by ExelForum001 View Post
    Thanks for the quick reply AZ-XL. I am very pleased. I recognize that it is an array formula you used. Could you please tell me if each cell starting from I2 needs the Ctrl+Shift+Enter simultaneous keystrokes individually? Or do I highlight all the cells that have the similar formulas and do the CSE keystrokes at once? Thanks.
    I am sorry but I couldnt understand question fully. But if you want to change formula do it in I2 cell and enter CSE then drag it to right and down or wherever it is proper.

  5. #5
    Registered User
    Join Date
    04-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    Thanks again AZ-XL. I now realize why the formula was not working when I copied it and expanded the range, even when I pressed Ctrl+Shift+Enter. It was because the cursor was not on the formula bar but on the cell itself. The cursor needs to be on the formula bar for this to work. Thanks again...I believe I am all set!

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    I am glad that you managed to set the formula.

    Wish you luck and do not forget to Click on Star on the left bottom of my message bar

  7. #7
    Registered User
    Join Date
    04-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Student scores listed vertically in columns need to be transposed horizontally in rows

    Yup, I just finished a report that would have taken me days to individually transpose. Thanks a lot. I clicked the star already and it's not letting me click some more...Last question: How do I mark this question "solved"? Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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