Race results - Problem with rankings

AJSharpy

New Member
Joined
Oct 1, 2016
Messages
12
Hi Folks,

Quite often come here to find solutions and the forums are great! However this time i'm totally stumped, so my first post is a plea for help!

I'm running a ski competition and for the races i need to rank competitors based on their time through the course. Which is fine and dandy, the problem comes when a racer posts either a DNS, DNF or DSQ. As per the race rules, those who post a DSQ are still awarded a time, but are then excluded from the ranking. This is what's causing me so much grief!

G H I J K L
MinsSecondsMillisecondsConditionsTimeRank
111101:01:112
000DNF00:00:00#VALUE!
333DSQ03:03:03#VALUE!
44404:04:044
55505:05:055
66606:06:066
77707:07:077

<colgroup><col width="77"><col width="77"><col width="90"><col width="77"><col width="77"><col width="77"></colgroup> <tbody>
</tbody>

Trying to use something like this: =IF($J4="";RANK(K4;$K$4:$K$100;1);IF($J4="*",L4,100))
I need the Rank column to rank those who set a legitimate time, with rank 1 being the quickest time, while giving those who DSQ etc a rank of 100 to list them at the bottom of the results.

Anyone got any ideas? I'm going spare trying to find an answer! Why can't there just be a RANKIF! (Please note, i'm using OpenOffice but the functions etc are basically the same as Excel)

Thanks in advance!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You could make your first lookup up check for D i.e IF(LEFT(CELL,1)="D" something like that and exclude them ?
 
Upvote 0
Maybe this...


G
H
I
J
K
L
1
Mins​
Seconds​
Milliseconds​
Conditions​
Time​
Rank​
2
1​
1​
11​
01:01:11​
1​
3
0​
0​
0​
DNF​
00:00:00​
100​
4
3​
3​
3​
DSQ​
03:03:03​
100​
5
4​
4​
4​
04:04:04​
2​
6
5​
5​
5​
05:05:05​
3​
7
6​
6​
6​
06:06:06​
4​
8
7​
7​
7​
07:07:07​
5​

Formula in L2 copied down
=IF(J2<>"",100,COUNTIFS(J:J,"=",K:K,"<"&K2)+1)

Hope this helps

M.
 
Upvote 0
Maybe this...


G
H
I
J
K
L
1
Mins​
Seconds​
Milliseconds​
Conditions​
Time​
Rank​
2
1​
1​
11​
01:01:11​
1​
3
0​
0​
0​
DNF​
00:00:00​
100​
4
3​
3​
3​
DSQ​
03:03:03​
100​
5
4​
4​
4​
04:04:04​
2​
6
5​
5​
5​
05:05:05​
3​
7
6​
6​
6​
06:06:06​
4​
8
7​
7​
7​
07:07:07​
5​

<tbody>
</tbody>


Formula in L2 copied down
=IF(J2<>"",100,COUNTIFS(J:J,"=",K:K,"<"&K2)+1)

Hope this helps

M.

This is an absolute beauty! Works a dream in Excel so just need to figure out the conversion to OpenOffice now. Cheers for the help!
 
Upvote 0

<tbody>
</tbody>
You are welcome. Glad to help :)

M.

Ok, any chance you can help take it up a notch?

Racers all have 2 runs, with their total time determining their final rank. However a DNS/DNF etc in either run 1 or run 2 means they don't receive a final rank (Rank 100 in the above example). My crude attempts so far for the 'Final Rank' are: =IF(J4<>"",100,IF(P4<>"",100,COUNTIFS(P:P,"=",J:J,"=",S$4:S$100,"<"&S4)+1)) which returns "100" if there is a DNF etc present in either column P or J, however if the racer sets a legitimate time in both the formula doesn't function (returns #VALUE!).

Run 1Run 2

MinsSecondsMillisecondsConditionsTimeRankMinsSecondsMillisecondsConditionsTimeRankTotalFinal Rank
111dnf01:01:0110011101:01:01102:02:02100
22202:02:02122202:02:02104:04:04#VALUE!
33303:03:031333dsq03:03:0310006:06:06100
44404:04:04144404:04:04108:08:08#VALUE!
55505:05:05155505:05:05110:10:10#VALUE!
66606:06:06166606:06:06112:12:12#VALUE!
77707:07:07177707:07:07114:14:14Err:502
88808:08:08188808:08:08116:16:16Err:502

<colgroup><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"></colgroup> <tbody>
</tbody>
 
Upvote 0
Maybe...

=IF(OR(J4<>"",P4<>""),100,COUNTIFS(J:J,"=",P:P,"=",S:S,"<"&S4)+1)

M.
 
Upvote 0
Yep, you're good! Awesome solution!

One last one i promise! I've been getting a bit more creative and managed to change the '100' ranking for the correct DSQ/DNF. Any pointers for how to ammend that last formula to reflect this? So Final Rank will pull through a DSQetc from either Run Ranking?

Run 1Run 2
MinsSecondsMillisecondsConditionsTimeRankMinsSecondsMillisecondsConditionsTimeRankTotalFinal Rank
111 01:01:011111 dnf01:01:01 dnf02:02:02100
222 02:02:022222 02:02:02 104:04:041
333 03:03:033333 03:03:03 206:06:062
444 dsq04:04:04 dsq444 04:04:04 308:08:08100

<colgroup><col span="2"><col span="2"><col span="4"><col span="2"><col span="2"><col><col></colgroup><tbody>
</tbody>

My equations for giving the DSQ/DNF/DNS in the ranking columns is: =IF(ISNUMBER(SEARCH("D",P4)),P4,COUNTIFS(P:P,"=",Q:Q,"<"&Q4)+1) which works a treat (ammended your original suggestion, thanks for the tips!) but no idea how to combine that to also search for the 'D' result from J4 in Run1, giving the 'Final Rank' column either a ranking number or a DSQ/DNF/DNS.

Thanks in advance again!
A
 
Upvote 0
Not sure i understand what you need...

This?
=IF(ISNUMBER(SEARCH("D",J4&P4)),......

M.
 
Upvote 0
That's almost the one! Sorry i can't explain it better but you're on the right track!

=IF(ISNUMBER(SEARCH("D",J4&P4)),J4,COUNTIFS(J:J,"=",P:P,"=",S:S,"<"&S4)+1)

This returns the right result if the DSQ is in J4, but doesn't take into account any 'D' results in P4.
 
Upvote 0

Forum statistics

Threads
1,216,227
Messages
6,129,609
Members
449,520
Latest member
TBFrieds

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