Ranking

snowy

New Member
Joined
Dec 2, 2010
Messages
9
Hi,
I'm trying to rank scores dependant, first g, then lowest f, then highest C. I think I've managed this. However I want the ranking to ignore a total score if the competitor is "HC"(see Table A). I can only do this if I don't put the final score in column G.(see Table B).

Table A

A B C D E F G H
1 178 19.1 0.0 10.4 29.5 3
2 132 40.0 0.0 0.0 40.0 6
3 hc 155 29.5 0.0 0.0 29.5 HC
4 167 24.1 0.0 6.0 30.1 4
5 154 30.0 0.0 4.0 34.0 5
6 162 26.4 3.1 0.0 29.5 1

Table B

A B C D E F G H
1 178 19.1 0.0 10.4 29.5 2
2 132 40.0 0.0 0.0 40.0 5
3 hc 155 29.5 0.0 0.0 HC HC
4 167 24.1 0.0 6.0 30.1 3
5 154 30.0 0.0 4.0 34.0 4
6 162 26.4 3.1 0.0 29.5 1

In Table A I used the formula =IF(B2="hc","HC",(RANK.EQ($G2,$G$2:$G$7,1)+SUMPRODUCT(--($G$2:$G$7=$G2),--($F$2:$F$7<$F2))+SUMPRODUCT(--($G$2:$G$7=$G2),--($F$2:$F$7=$F2),--($C$2:$C$7>$C2))))

Any help gratefully received.
Many thanks
S
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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