How to find the rank of only passed students.
Here is a part of Mark sheet I prepared.
I need to find the rank of only passed students.
That means, in my problem,
ABC should get 2
DEF should get 0 or "FAIL" or "No Rank"
GHI should get 3
and JKL should get 1
In this problem, there is no incidence of tie. But, in my real problem, there can occur tie. And, for tie, the rank version of 1, 2, 3, 3, 5, 6 is okay.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Total[/TD]
[TD="align: center"]Result[/TD]
[TD="align: center"]Rank[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: center"]89[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]FAIL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD="align: center"]95[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.
Here is a part of Mark sheet I prepared.
I need to find the rank of only passed students.
That means, in my problem,
ABC should get 2
DEF should get 0 or "FAIL" or "No Rank"
GHI should get 3
and JKL should get 1
In this problem, there is no incidence of tie. But, in my real problem, there can occur tie. And, for tie, the rank version of 1, 2, 3, 3, 5, 6 is okay.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Total[/TD]
[TD="align: center"]Result[/TD]
[TD="align: center"]Rank[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: center"]89[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]FAIL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD="align: center"]95[/TD]
[TD="align: center"]PASS[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.