Problem with Index/Match Formula

slam

Well-known Member
Joined
Sep 16, 2002
Messages
779
I run a racing league and generate results tables for it. There are individual worksheets for each race where results are entered, then a separate Driver Championship worksheet is automatically generated from it, and likewise for a Team Championship worksheet.

I am having a problem with the Team Championship worksheet. I use the following formula to extract the points a driver receives from each race from the individual race worksheets:

(Sorry guys, can't get the Formula to save in the post in full as CODE tags or any other way - keeps cutting off the end of the formula and removing the close code tag. <aus!$f$20),"dns","-"))[ code]
<aus!$f$20),"dns","-"))[ code]
<aus!$f$20),"dns","-")) [="" code]
<aus!$f$20),"dns","-"))
<aus!$f$20),"dns","-"))
<aus!$f$20),"dns","-"))[ quote]
<aus!$f$20),"dns","-"))
<aus!$f$20),"dns","-"))
<aus!$f$20),"dns","-"))
Here it is as an image)

Formula.png

<aus!$f$20),"dns","-"))


This works absolutely perfectly, with one rare exception. A driver can, on a rare occasion, driver for more than one team. What the formula is doing with such instances, is it is taking his race results, and applying them to both teams. For instance, if he drove for Team A in Race 1, and drove for Team B in Race 2, his results from Race 1 are applied to Team A and to Team B, and likewise, his results for Race 2 are applied to Team A and to Team B.

Here's a look at the worksheets to complete the picture:

Constructors Championship Worksheet

Team%20Championship.png


Race Worksheet (This one is AUS - there are 19 of these)

AUS.png


Drivers Worksheet

Drivers.png


You can see with the drivers named Disc0Potat0 & JDigital28, their results for all races showing up for both teams they have driven for. With JDigital28 for instance, it should show that he had a DSQ at TUR with McLaren, and had 8 points at ESP with Ferrari.

Would greatly appreciate any help with this.</aus!$f$20),"dns","-"))
</aus!$f$20),"dns","-"))
</aus!$f$20),"dns","-"))></aus!$f$20),"dns","-"))
</aus!$f$20),"dns","-"))[></aus!$f$20),"dns","-"))
</aus!$f$20),"dns","-"))
</aus!$f$20),"dns","-"))></aus!$f$20),"dns","-"))[></aus!$f$20),"dns","-"))[>
 
Last edited:

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

slam

Well-known Member
Joined
Sep 16, 2002
Messages
779
Here is the first part of the formula. Note this is not all of it. You can see the last part in the screenshot in the first post. This forum doesn't like the last part of the code no matter how I post it here :(

Code:
=IFERROR(IF(OR($D2="",AUS!$B$2=""),"",INDEX(AUS!$H$2:$H$17,MATCH($D2,AUS!$B$2:$B$17,0))),IF(AND(OR(INDEX(V(INDEX(Drivers!$B$2:$C$99,MATCH($D2,Drivers!$A$2:$A$99,0),0)),2)="",INDEX(V(),2)>AUS!$F$20),INDEX(V(),1)<AUS!$F$20),"DNS","-"))
<aus!$f$20),"dns","-"))[ code]<aus!$f$20),"dns","-"))[="" code]

<aus!$f$20),"dns","-"))[ code]<="" html=""></aus!$f$20),"dns","-"))[></aus!$f$20),"dns","-"))[>
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,104
Messages
5,599,750
Members
414,333
Latest member
willfrederick

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
Top