Search code examples
excelexcel-formularankingexcel-365

Way to get ranking position in Excel


Name   Mathematics  Science  Biology  History  Total Marks  Rank
A          90          91       95      90          366       1
B          85          95       90      95          365       2
C          98          80       80      85          343       3
D          90          80       85      88          343       3
E          99          83       80      81          343       3

Hence person C, D & E got same total marks 343 and ranking of them is 3. Since E, C & D got 99, 98 & 90 respectively in mathematics, I want to rank as E = 3, C = 4 & D =5.

I badly need the solution. Help me please.


Solution

  • As you are on Excel365 then try below formula.

    =XMATCH(F2*100000+B2,SORT($F$2:$F$6*100000+$B$2:$B$6,,-1),0)
    

    enter image description here