I am trying to rank based on two value columns - (Aggregate and Raw Score) - such that it should rank by Aggregate (Column B), then by Raw Score (Column C).
In the data, the least Aggregate should be ranked first and highest aggregate should be last.
However, where two or more persons have same Aggregate, then the highest Raw Score should be used to separate them.
I used the formula below:
=RANK(C2,$C$2:$C$130)+SUMPRODUCT(--($C$2:$C$130=$C2),--(B2>$B$2:$B$130))&MID("thstndrdth",MIN(9,2*RIGHT(RANK(C2,$C$2:$C$130))*(MOD(RANK(C2,$C$2:$C$130)-11,200)>2)+1),2)
but, it seems some persons with higher Aggregates with higher Raw Score have been ranked before those with least Aggregate.
Any help to rank them by least Aggregate then by highest Raw Score.
Data attached
Bookmarks