+ Reply to Thread
Results 1 to 6 of 6

Ranking students based on their scores

  1. #1
    Registered User
    Join Date
    02-22-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Ranking students based on their scores

    Hi,

    I am working on a problem that involves ranking 8 students in a class. Their aggregate marks are the first base for ranking them. However, because there is a tie and 2 students have scored the same marks, next weightage has been given to their maths score and whoever has the higher score in maths will be ranked first than the other.
    I tried using the RANK function in excel, but I dont know how to put the condition of using the maths score as the second base in case of ties. Can anyone help with ideas on the formula or approach to solve this problem? You can pick up any randon scores that have atleast 1 tie and correspondingly random maths score.

    Thanks
    MSD
    Attached Files Attached Files
    Last edited by msd_2008; 02-03-2011 at 03:26 PM. Reason: Attaching an example

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Ranking students based on their scores

    Try:

    =RANK(B3,B$3:B$9)+SUMPRODUCT(--(B$3:B$9=B3),--(C3<C$3:C$9))

    copied down

    In case the Math score also became tied, then if you don't want the two to have same rank, try:

    =RANK(B3,B$3:B$9)+SUMPRODUCT(--(B$3:B$9=B3),--(C3<C$3:C$9))+COUNTIF(C$3:C3,C3)-1
    Last edited by NBVC; 02-03-2011 at 03:43 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-22-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Ranking students based on their scores

    Quote Originally Posted by NBVC View Post
    Try:

    =RANK(B3,B$3:B$9)+SUMPRODUCT(--(B$3:B$9=B3),--(C3<C$3:C$9))

    copied down

    In case the Math score also became tied, then if you don't want the two to have same rank, try:

    =RANK(B3,B$3:B$9)+SUMPRODUCT(--(B$3:B$9=B3),--(C3<C$3:C$9))+COUNTIF(C$3:C3,C3)-1
    Thanks NBVC! The formula is working. Can you please explain in simple terms what exactly is the SUMPRODUCT part of the formula trying to say? I am still learning and would greatly appreciate your reply.

  4. #4
    Forum Contributor
    Join Date
    06-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    101

    Re: Ranking students based on their scores

    i can't.
    try it another way.

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

    Re: Ranking students based on their scores

    @excelforum123

    Are you suggesting the OP use another solution because you can't explain NBVC's solution?
    Do you have a different solution to offer?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Ranking students based on their scores

    Also, excelforum123,

    This is an old thread. If you have a solution to offer its fine to post it here but not otherwise
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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