使用 Excel 为跑步者在系列赛中找到最佳结果

Using Excel To Find Best Results For Runners In A Race Series

假设我有以下两场比赛的结果列表:

Name    AG  League  Pos_In_League   Race
Gareth Gareth   V40 MALE V40-49 LEAGUE  1   Race 1
David David SEN MALE SENIOR LEAGUE  1   Race 1
Chris Chris V40 MALE V40-49 LEAGUE  2   Race 1
James James SEN MALE SENIOR LEAGUE  2   Race 1
Paul Paul   SEN MALE SENIOR LEAGUE  3   Race 1
Gareth Gareth   V40 MALE V40-49 LEAGUE  1   Race 2
James James SEN MALE SENIOR LEAGUE  1   Race 2
John John   V40 MALE V40-49 LEAGUE  2   Race 2
Chris Chris V40 MALE V40-49 LEAGUE  3   Race 2
David David SEN MALE SENIOR LEAGUE  2   Race 2
Peter Peter SEN MALE SENIOR LEAGUE  3   Race 2

从这个列表中,我想显示每个人得到的最好结果。有些人可能只参加一场比赛,而有些人会参加两场比赛。本例中的结果如下所示:

Gareth Gareth   V40 MALE V40-49 LEAGUE  1   Race 1
David David SEN MALE SENIOR LEAGUE  1   Race 1
James James SEN MALE SENIOR LEAGUE  1   Race 2
Chris Chris V40 MALE V40-49 LEAGUE  2   Race 1
Paul Paul   SEN MALE SENIOR LEAGUE  3   Race 1
Peter Peter SEN MALE SENIOR LEAGUE  3   Race 2

在哪里

Gareth did two races and finished first both times – both results are the same
David did two races and finished 1st in race 1 and 2nd in race 2 – best was 1st @ Race 1
James did two races and finished 2nd in race 1 and 1st in race 2 – best was 1st at Race 2
Chris did two races and finished 2nd in race 1 and 3rd in race 2 – best was 2nd at Race 1
Paul only did race 1 and came third so his best was 3rd at Race 1 
Peter only did race 2 and came third so his best was 3rd at Race 2

我可以使用 Excel 来做出这个决定,在每种情况下显示完整的数据行吗?

如果这是可能的,那么第二个问题就会出现。如果引入第三场比赛,Excel 可以告诉我每人三场比赛中最好的两场吗?例如。在上面的示例中,如果 Chris 参加了第三场比赛并获得第一名,他的结果将是

Chris Chris V40 MALE V40-49 LEAGUE  2   Race 1
Chris Chris V40 MALE V40-49 LEAGUE  1   Race 3

谢谢

按名称(主要)和结果(次要,从好到坏)对 table 进行排序。 在右侧添加一个带有布尔值的列,当且仅当名称与上面的行 不同 时才为真。然后过滤该列中的 True 结果。对于第二个问题,您可以允许名称与上面的一两行不同。 table.

的顶部需要一些边缘条件