Race category formula

jezzery

New Member
Joined
Feb 24, 2015
Messages
7
Previous to this Alphafrog kindly put together the formulas below to work out whether participants received a gold, silver or bronze according to their times of 2 different distances. I now have a race that includes 3 distances and cannot work out how to include another race category into the formula that works out their award based on what time they have achieved for the distance. The data for the race is as follows if anyone can help and the previous data and formula is below.

The Standard Times for 110 miles are:

Age Group 18 to 39
= 6:10 Gold, 6:30 Silver, 6:50 Bronze.
Age Group 40 to 49 = 6:25 Gold, 6:40 Silver, 7:00 Bronze.
Age Group 50 to 59 = 6:35 Gold, 6:50 Silver, 7:10 Bronze.
Age Group 60+ = 6:50 Gold, 7:10 Silver, 7:30 Bronze.

The Standard Times for 72 miles are:
Age Group 18 to 39 = 4:20 Gold, 4:40 Silver, 5:00 Bronze.
Age Group 40 to 49 = 4:35 Gold, 4:50 Silver, 5:10 Bronze.
Age Group 50 to 59 = 4:45 Gold, 5:00 Silver, 5:20 Bronze.
Age Group 60+ = 5:00 Gold, 5:20 Silver, 5:40 Bronze.

The Standard Times for 42 miles are:
Age Group 18 to 39 = 2:20 Gold, 2:40 Silver, 3:05 Bronze
Age Group 40 to 49 = 2:30 Gold, 2:50 Silver, 3:15 Bronze
Age Group 50 to 59 = 2:40 Gold, 3:05 Silver, 3:30 Bronze
Age Group 60+ = 3:00 Gold, 3:25 Silver, 3:50 Bronze.

Ladies add 20 mins to each category

*ABCDEFGHIJKLMNOPQ
1NameAgeSexRouteTimeAward*80 Mile*****50 Mile***
2Jim18M805:00Silver*AgeGoldSilverBronze---*GoldSilverBronze---
3Jane33F806:00Bronze*1804:505:105:40*02:503:103:25
4John44M503:00Silver*4005:055:205:50*03:003:203:45
5June55F503:29Gold*5005:155:356:05*03:103:354:00
6Joan66F504:54---*6005:356:006:25*03:303:554:20
7********Ladies add 20 mins to each category*********

<tbody>
</tbody>


Spreadsheet Formulas
CellFormula
F2=INDEX($I$2:$L$2,MATCH(E2-IF(UPPER(C2)="F",TIMEVALUE("00:20:00"),0),INDEX(IF(D2=80,$I$3:$L$6,$N$3:$Q$6),MATCH(B2,$H$3:$H$6,1),0),1))
F3=INDEX($I$2:$L$2,MATCH(E3-IF(UPPER(C3)="F",TIMEVALUE("00:20:00"),0),INDEX(IF(D3=80,$I$3:$L$6,$N$3:$Q$6),MATCH(B3,$H$3:$H$6,1),0),1))
F4=INDEX($I$2:$L$2,MATCH(E4-IF(UPPER(C4)="F",TIMEVALUE("00:20:00"),0),INDEX(IF(D4=80,$I$3:$L$6,$N$3:$Q$6),MATCH(B4,$H$3:$H$6,1),0),1))
F5=INDEX($I$2:$L$2,MATCH(E5-IF(UPPER(C5)="F",TIMEVALUE("00:20:00"),0),INDEX(IF(D5=80,$I$3:$L$6,$N$3:$Q$6),MATCH(B5,$H$3:$H$6,1),0),1))
F6=INDEX($I$2:$L$2,MATCH(E6-IF(UPPER(C6)="F",TIMEVALUE("00:20:00"),0),INDEX(IF(D6=80,$I$3:$L$6,$N$3:$Q$6),MATCH(B6,$H$3:$H$6,1),0),1))


<tbody>
</tbody>


<tbody>
</tbody>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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