Calculating running race position.

Herakles

Well-known Member
Joined
Jul 5, 2020
Messages
927
Office Version
  1. 365
Platform
  1. Windows
The final bit of this project and then it's finished.

The position of a runner in a trail race is based upon three criteria, distance, gender and age category..

Runners matching these three criteria and the same time have the same position.

I could have a number of people in each position.

I only want to show positions 1 to 3.

Runners will be always be listed in finishing order.

There are 2 different distances run at the same time, 10 different age categories and 2 genders.

Any suggestions on a foolproof formula would be appreciated.

Thanks

10k Reports.xlsm
ABCDEFGHI
1App RefNumberNameClub NameDistanceCategoryGenderTimePosition
21200*** *********631-40M00:23:001
32201*** *********641-50M00:23:451
43205*** *********641-50M00:23:451
54300*** *********641-50M00:23:451
65245*** *********641-50M00:23:451
76212*** *********641-50M00:24:022
87303*** *********641-50M00:24:033
Timekeeping
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I183Cell Value=1textYES
I2:I183Cell Value=2textYES
I2:I183Cell Value=3textYES
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try this
Book1.xlsm
BCDEF
2DistanceCategoryGenderTimePosition
3641-50M00:23:022
4841-50F00:23:121
5641-50F00:23:451
6841-50M00:24:041
7841-50F00:24:152
8841-50F00:24:233
9641-50M00:23:323
10641-50F00:23:562
11841-50M00:24:152
12641-50F00:23:573
13841-50M00:24:152
14641-50M00:22:401
Sheet5
Cell Formulas
RangeFormula
F3:F14F3=XMATCH(E3,SORT(FILTER($E$3:$E$14,B3&C3&D3=$B$3:$B$14&$C$3:$C$14&$D$3:$D$14),,1))
 
Last edited:
Upvote 0
I have altered it slightly by Sorting the table by a customer sort
Book1.xlsm
ABCDEF
2RunnerDistanceCategoryGenderTimePosition
3J841-50M00:24:041
4G841-50F00:23:121
5D641-50F00:23:451
6C641-50M00:22:401
7L841-50M00:24:152
8K841-50M00:24:152
9H841-50F00:24:152
10E641-50F00:23:562
11A641-50M00:23:022
12I841-50F00:24:233
13F641-50F00:23:573
14B641-50M00:23:323
Sheet5
Cell Formulas
RangeFormula
F3:F14F3=XMATCH(E3,SORT(FILTER($E$3:$E$14,B3&C3&D3=$B$3:$B$14&$C$3:$C$14&$D$3:$D$14),,1))
 
Upvote 0
I have altered it slightly by Sorting the table by a customer sort
Book1.xlsm
ABCDEF
2RunnerDistanceCategoryGenderTimePosition
3J841-50M00:24:041
4G841-50F00:23:121
5D641-50F00:23:451
6C641-50M00:22:401
7L841-50M00:24:152
8K841-50M00:24:152
9H841-50F00:24:152
10E641-50F00:23:562
11A641-50M00:23:022
12I841-50F00:24:233
13F641-50F00:23:573
14B641-50M00:23:323
Sheet5
Cell Formulas
RangeFormula
F3:F14F3=XMATCH(E3,SORT(FILTER($E$3:$E$14,B3&C3&D3=$B$3:$B$14&$C$3:$C$14&$D$3:$D$14),,1))

I have altered it slightly by Sorting the table by a customer sort
Book1.xlsm
ABCDEF
2RunnerDistanceCategoryGenderTimePosition
3J841-50M00:24:041
4G841-50F00:23:121
5D641-50F00:23:451
6C641-50M00:22:401
7L841-50M00:24:152
8K841-50M00:24:152
9H841-50F00:24:152
10E641-50F00:23:562
11A641-50M00:23:022
12I841-50F00:24:233
13F641-50F00:23:573
14B641-50M00:23:323
Sheet5
Cell Formulas
RangeFormula
F3:F14F3=XMATCH(E3,SORT(FILTER($E$3:$E$14,B3&C3&D3=$B$3:$B$14&$C$3:$C$14&$D$3:$D$14),,1))
Thanks Skybluekid.

It works great apart from one thing.

The sheet I have posted identifies by the shading, missing positions because, for example, there have been two people who finished
together and are in position 2 in example 1.

Would this be a major change to have one in Position 1, two in Position 2 and one in Position 3?

It is not the end of the world if not. Our stash of prizes does not cater for this scenario.
 
Upvote 0
Thanks Skybluekid.

It works great apart from one thing.

The sheet I have posted identifies by the shading, missing positions because, for example, there have been two people who finished
together and are in position 2 in example 1.

Would this be a major change to have one in Position 1, two in Position 2 and one in Position 3?

It is not the end of the world if not. Our stash of prizes does not cater for this scenario.
10k Reports.xlsm
ABCDEF
1RunnerDistanceCategoryGenderTimePosition
2200621-30M00:22:001
3201621-30M00:22:001
4202621-30M00:22:012
5203621-30M00:22:012
6204621-30M00:22:024
7205621-30M00:23:455
8206621-30M00:23:506
9207621-30M00:24:007
10208621-30M00:24:007
11209621-30M00:24:019
12210621-30M00:24:019
13211621-30M00:24:0911
Sheet1
 
Upvote 0
This should do it.
Book1.xlsm
ABCDEF
2RunnerDistanceCategoryGenderTimePosition
3J841-50M00:24:041
4G841-50F00:23:121
5D641-50F00:23:451
6C641-50M00:22:401
7L841-50M00:24:152
8K841-50M00:24:152
9H841-50F00:24:152
10E641-50F00:23:562
11A641-50M00:23:022
12M641-50M00:23:022
13I841-50F00:24:233
14F641-50F00:23:573
15B641-50M00:23:323
Sheet5
Cell Formulas
RangeFormula
F3:F15F3=XMATCH(E3,UNIQUE(SORT(FILTER($E$3:$E$15,B3&C3&D3=$B$3:$B$15&$C$3:$C$15&$D$3:$D$15,1))))


I would use named ranges so it would be easier to read.
 
Upvote 0
This should do it.
Book1.xlsm
ABCDEF
2RunnerDistanceCategoryGenderTimePosition
3J841-50M00:24:041
4G841-50F00:23:121
5D641-50F00:23:451
6C641-50M00:22:401
7L841-50M00:24:152
8K841-50M00:24:152
9H841-50F00:24:152
10E641-50F00:23:562
11A641-50M00:23:022
12M641-50M00:23:022
13I841-50F00:24:233
14F641-50F00:23:573
15B641-50M00:23:323
Sheet5
Cell Formulas
RangeFormula
F3:F15F3=XMATCH(E3,UNIQUE(SORT(FILTER($E$3:$E$15,B3&C3&D3=$B$3:$B$15&$C$3:$C$15&$D$3:$D$15,1))))


I would use named ranges so it would be easier to read.
Thanks a lot.

I'll give it a try later.

The bottom row changes as runners finish and whose time is logged so I will have to make it dynamic.
 
Upvote 0
If you make the Distance, Gender, Category and Time all named ranges with a range of 5000 rows, you shold not run out.
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,016
Members
449,280
Latest member
Miahr

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