Formula to select first 3 runners and first in each category

Barryb

New member
Joined
Jul 8, 2015
Messages
1
Reaction score
0
Points
0
Hi
I'm doing some road race results and would like to set up a formula on another sheet looking up the first 3 finishes, and then the first runner from each category. So I want to be able to have on another sheet looking up the results:

So below is an example of the race results and I would like on another sheet listing the top 3 male runners, 3 female runners and then 1st M40, M45, M50 etc etc. But ( looking at the list under the results) if a F40 comes 3rd I need her name in the top 3 finishes for female and also the 1st F40. I've tried and tried but just can't get it right.
Can anyone help please

NoForenameSurnameCatClubTimePos
157MarcHartleyMStoke AC38.41
123JimmyCraigMBarlick Fellrunners39.092
52NickTreitlMBarlick Fellrunners40.33
118RobertJamesMU/A41.024
105MichaelKeedyM40Skipton AC41.275
101AndyButteryM40Blackburn AC41.456
70StephenStockwellM45West Australia41.567
143ThomasCorriganMU/A42.038
18JohnLloydMSalford Harriers42.439
1ThomasBrewsterMClayton le Moors Harriers43.3110
146GaryPearseM45Blackburn AC43.5611
131KevinDaviesM50Clayton Harriers44.1412
69NicholasCookMTrawden AC44.1613
102SeanMolloyM45Rossendale44.2114
36AndyBerryMBarlick Fellrunners44.2415
39ChrisQuigleyM45Trawden AC44.2716
156AndrewDriverMBarlick Fellrunners44.3817
111PaulHeskethM45Clayton Harriers44.4318
119PaulRedmanM40Trawden AC44.4519
83ThorntonTalyorM55Rossendale44.5720

NoForenameSurnameCatClubTimePos
1st Male157MarcHartleyMStoke AC38.41
2nd Male123JimmyCraigMBarlick Fellrunners39.092
3rd Male52NickTreitlMBarlick Fellrunners40.33
1st M40
1st M45
1st M50
1st Female66SarahTiplerFBarlick Fellrunners47.0531
2nd Female17AutumnHowardFTrawden AC49.5754
3rd Female38LorraineSlaterF40Barlick Fellrunners51.5467
1st F4038LorraineSlaterF40Barlick Fellrunners51.5467
1st F45
1st F50
 
So below is an example....
You should set an example of your file, then it could be easier to help you.
You try my idea
I would have tried to solve the following way

On Sheet1 I have added four extra columns, these columns you can hide to be invisible

On Sheet2 I put the following formulas

The first category of runners
In cell B2 array CSE formula
Code:
=INDEX(Sheet1!$A$2:$A$21;MATCH(1;(Sheet1!L2=Sheet1!$D$2:$D$21)*(ROW(Sheet1!A1)=Sheet1!$J$2:$J$21);0))

In cell C2, this formula you copy to the last column to the right and down for all categories
Code:
=VLOOKUP($B2;Sheet1!$A$2:$G$21;COLUMN(Sheet1!B$1);FALSE)

The second category of runners
In cell B6 array CSE formula
Code:
=INDEX(Sheet1!$A$2:$A$21;MATCH(1;(Sheet1!L6=Sheet1!$D$2:$D$21)*(ROW(Sheet1!$A$1)=Sheet1!$K$2:$K$21);0))

The third category runners
In cell B11 array CSE formula
Code:
=INDEX(Sheet1!$A$2:$A$21;MATCH(1;(Sheet1!L11=Sheet1!$I$2:$I$21)*(ROW(Sheet1!A2)=Sheet1!$J$2:$J$21);0))

The fourth category runners
In cell B15 array CSE formula
Code:
=INDEX(Sheet1!$A$2:$A$21;MATCH(1;(Sheet1!L15=Sheet1!$D$2:$D$21)*(ROW(Sheet1!$A$1)=Sheet1!$K$2:$K$21);0))

To resolve the errors you use IFERROR or IF/ISERROR
I hope I helped you, if this is not the solution I gave you an idea

Pay attention to the separator argument inside a formula. You may need to use a comma (,) instead of a semicolon (;)
 

Attachments

  • rank.png
    rank.png
    28.9 KB · Views: 7
  • rank.xlsx
    17.1 KB · Views: 6
Back
Top