Problems with ranking by multiple criteria

55damen

New Member
Joined
Aug 29, 2017
Messages
5
Hi all,

I am having problems ranking a group of students by multiple criteria. The rank I am trying to do should be sorted by their overall result (column BK) and then by their name (column N) in case of ties.

The rank generally works well, but at low percentage results students with no overall result are ranked ahead of those with a low percentage results.

I doubt the actual value is significant but what I mean is the student with 35.72% overall is ranked 47, then ranked 48 and 49 are two students with no result in that column (so a blank cell), and then ranked 50th is a student with 34.67%. I would like the students with no result ranked lower than any student with a score.

The formula I am using to rank is
=IF(N4="zzz", 0, COUNTIF($BK$4:$BK$194, ">"&$BK4)+COUNTIFS($BK$4:$BK$194, $BK4, $N$4:$N$194, ">"&$N4)+1)

The "zzz" automatically gives a rank of 0 to the excess students in the class results pages.

Does anyone have any advice? I'm at a loss how to fix it.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I cannot test your formula, but try this version:
Code:
=IF(N4="zzz", 0, COUNTIF($BK$4:$BK$194, ">"&$BK4)*($BK4<>"")+COUNTIFS($BK$4:$BK$194, $BK4, $N$4:$N$194, ">"&$N4)+1)
Bye
 
Upvote 0
[TABLE="width: 832"]
<colgroup><col width="64" span="13" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]student[/TD]
[TD="width: 64"]mark[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]stud20[/TD]
[TD="class: xl22, align: right"]87.07[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud15[/TD]
[TD="class: xl22, align: right"]82.87[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud7[/TD]
[TD="class: xl22, align: right"]76.73[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]original data[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud4[/TD]
[TD="class: xl22, align: right"]74.13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud3[/TD]
[TD="class: xl22, align: right"]72.67[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud17[/TD]
[TD="class: xl22, align: right"]61.94[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]student[/TD]
[TD]mark[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud1[/TD]
[TD="class: xl22, align: right"]44.03[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud1[/TD]
[TD="class: xl22, align: right"]44.03[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud12[/TD]
[TD="class: xl22, align: right"]42.72[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud2[/TD]
[TD="class: xl22, align: right"]31.30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud8[/TD]
[TD="class: xl22, align: right"]40.96[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud3[/TD]
[TD="class: xl22, align: right"]72.67[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud11[/TD]
[TD="class: xl22, align: right"]35.88[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud4[/TD]
[TD="class: xl22, align: right"]74.13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud10[/TD]
[TD="class: xl22, align: right"]35.11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud5[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud2[/TD]
[TD="class: xl22, align: right"]31.30[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud6[/TD]
[TD="class: xl22, align: right"]16.81[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud13[/TD]
[TD="class: xl22, align: right"]26.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud7[/TD]
[TD="class: xl22, align: right"]76.73[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud19[/TD]
[TD="class: xl22, align: right"]25.37[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud8[/TD]
[TD="class: xl22, align: right"]40.96[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud16[/TD]
[TD="class: xl22, align: right"]23.34[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud9[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud18[/TD]
[TD="class: xl22, align: right"]21.98[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud10[/TD]
[TD="class: xl22, align: right"]35.11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud6[/TD]
[TD="class: xl22, align: right"]16.81[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud11[/TD]
[TD="class: xl22, align: right"]35.88[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud14[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud12[/TD]
[TD="class: xl22, align: right"]42.72[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud5[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud13[/TD]
[TD="class: xl22, align: right"]26.05[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud9[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud14[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud15[/TD]
[TD="class: xl22, align: right"]82.87[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud16[/TD]
[TD="class: xl22, align: right"]23.34[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud17[/TD]
[TD="class: xl22, align: right"]61.94[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud18[/TD]
[TD="class: xl22, align: right"]21.98[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]an ordinary sort of mark then name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud19[/TD]
[TD="class: xl22, align: right"]25.37[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud20[/TD]
[TD="class: xl22, align: right"]87.07[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 723"]
<colgroup><col span="7"><col><col span="2"></colgroup><tbody>[TR]
[TD]student[/TD]
[TD]mark[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud1[/TD]
[TD="align: right"]44.03[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]87.07[/TD]
[TD]stud20[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud2[/TD]
[TD="align: right"]31.30[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]82.87[/TD]
[TD]stud15[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud3[/TD]
[TD="align: right"]72.67[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]76.73[/TD]
[TD]stud7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud4[/TD]
[TD="align: right"]74.13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]74.13[/TD]
[TD]stud4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]72.67[/TD]
[TD]stud3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud6[/TD]
[TD="align: right"]16.81[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]61.94[/TD]
[TD]stud17[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud7[/TD]
[TD="align: right"]76.73[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]44.03[/TD]
[TD]stud1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud8[/TD]
[TD="align: right"]40.96[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]42.72[/TD]
[TD]stud12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]40.96[/TD]
[TD]stud8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud10[/TD]
[TD="align: right"]35.11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]35.88[/TD]
[TD]stud11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud11[/TD]
[TD="align: right"]35.88[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]35.11[/TD]
[TD]stud10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud12[/TD]
[TD="align: right"]42.72[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]31.30[/TD]
[TD]stud2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud13[/TD]
[TD="align: right"]26.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]26.05[/TD]
[TD]stud13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]25.37[/TD]
[TD]stud19[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud15[/TD]
[TD="align: right"]82.87[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]23.34[/TD]
[TD]stud16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud16[/TD]
[TD="align: right"]23.34[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]21.98[/TD]
[TD]stud18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud17[/TD]
[TD="align: right"]61.94[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]16.81[/TD]
[TD]stud6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud18[/TD]
[TD="align: right"]21.98[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]0.00[/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud19[/TD]
[TD="align: right"]25.37[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]0.00[/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud20[/TD]
[TD="align: right"]87.07[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]0.00[/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]another way is to use the large function[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]to list the marks[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]then offset function to match the name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
I cannot test your formula, but try this version:
Code:
=IF(N4="zzz", 0, COUNTIF($BK$4:$BK$194, ">"&$BK4)*($BK4<>"")+COUNTIFS($BK$4:$BK$194, $BK4, $N$4:$N$194, ">"&$N4)+1)
Bye

Unfortunately this didn't change the rank at all, the same problem still exists
 
Upvote 0
[TABLE="width: 832"]
<tbody>[TR]
[TD="width: 64"]student[/TD]
[TD="width: 64"]mark[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]stud20[/TD]
[TD="class: xl22, align: right"]87.07[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud15[/TD]
[TD="class: xl22, align: right"]82.87[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud7[/TD]
[TD="class: xl22, align: right"]76.73[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]original data[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud4[/TD]
[TD="class: xl22, align: right"]74.13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud3[/TD]
[TD="class: xl22, align: right"]72.67[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud17[/TD]
[TD="class: xl22, align: right"]61.94[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]student[/TD]
[TD]mark[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud1[/TD]
[TD="class: xl22, align: right"]44.03[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud1[/TD]
[TD="class: xl22, align: right"]44.03[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud12[/TD]
[TD="class: xl22, align: right"]42.72[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud2[/TD]
[TD="class: xl22, align: right"]31.30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud8[/TD]
[TD="class: xl22, align: right"]40.96[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud3[/TD]
[TD="class: xl22, align: right"]72.67[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud11[/TD]
[TD="class: xl22, align: right"]35.88[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud4[/TD]
[TD="class: xl22, align: right"]74.13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud10[/TD]
[TD="class: xl22, align: right"]35.11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud5[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud2[/TD]
[TD="class: xl22, align: right"]31.30[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud6[/TD]
[TD="class: xl22, align: right"]16.81[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud13[/TD]
[TD="class: xl22, align: right"]26.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud7[/TD]
[TD="class: xl22, align: right"]76.73[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud19[/TD]
[TD="class: xl22, align: right"]25.37[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud8[/TD]
[TD="class: xl22, align: right"]40.96[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud16[/TD]
[TD="class: xl22, align: right"]23.34[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud9[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud18[/TD]
[TD="class: xl22, align: right"]21.98[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud10[/TD]
[TD="class: xl22, align: right"]35.11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud6[/TD]
[TD="class: xl22, align: right"]16.81[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud11[/TD]
[TD="class: xl22, align: right"]35.88[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud14[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud12[/TD]
[TD="class: xl22, align: right"]42.72[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud5[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud13[/TD]
[TD="class: xl22, align: right"]26.05[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stud9[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud14[/TD]
[TD="class: xl22"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud15[/TD]
[TD="class: xl22, align: right"]82.87[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud16[/TD]
[TD="class: xl22, align: right"]23.34[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud17[/TD]
[TD="class: xl22, align: right"]61.94[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud18[/TD]
[TD="class: xl22, align: right"]21.98[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]an ordinary sort of mark then name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud19[/TD]
[TD="class: xl22, align: right"]25.37[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]stud20[/TD]
[TD="class: xl22, align: right"]87.07[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Sorry about the duplicate post. I meant what formula did you use for this ranking?
 
Upvote 0
While wating for oldbrewer answer try this:
Code:
=IF(N4="zzz", 0, COUNTIF($BK$4:$BK$194, ">"&$BK4)+COUNTIFS($BK$4:$BK$194, $BK4, $N$4:$N$194, ">"&$N4)+1+COUNTA($BK$4:$BK$194)*($BK4=""))

Bye
 
Upvote 0
While wating for oldbrewer answer try this:
Code:
=IF(N4="zzz", 0, COUNTIF($BK$4:$BK$194, ">"&$BK4)+COUNTIFS($BK$4:$BK$194, $BK4, $N$4:$N$194, ">"&$N4)+1+COUNTA($BK$4:$BK$194)*($BK4=""))

Bye

Unfortunately this still hasn't changed anything. The gaps in the rank still exist. Thanks for your help though
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top