Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Iwuanyanwu Nationale
4-3
Tonnerre Yaoundé
2-0
2-3
3
Africa Sports
4-2
Petro Atlético
3-0
1-2
4
FAR Rabat
6-2
AS Police
5-0
1-2
5
Sunrise Flacq United
3-5
Matchedje Maputo
2-0
1-5
6
FC 105 Libreville
3-2
FC Inter-Star
2-1
1-1
7
ES Sahel
2-3
ES Sétif
2-1
0-2
8
Kabwe Warriors
1-3
Al-Hilal
0-0
1-3
9
Nakivubo Villa SC
3-6
Al-Ahly
2-3
1-3

Questions and formulas:
Question: What was the first leg score for the match that had AS Police as team 2?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="as police"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="as police"),4))
Level: medium
Question: Who were the team 2 when team 1 was Iwuanyanwu Nationale and the 1st leg score was 2-0?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="2-0")*(A1="iwuanyanwu nationale")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(D2:D9="2-0")*(A2:A9="iwuanyanwu nationale")),3))
Level: medium
Question: What was the 2nd leg score for the tie that had a 5-0 first leg score?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="5-0"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,D2:D9="5-0"),5))
Level: medium
Question: What was the team 1 for the tie that had a first leg score of 2-3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="2-3"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,D2:D9="2-3"),1))
Level: medium
Question: Who was the team 1 in the match that had a 1st leg score of 3-0 and a 2nd leg of 1-2?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="1-2")*(D1="3-0")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(E2:E9="1-2")*(D2:D9="3-0")),1))
Level: medium
Question: What was the first leg score for the match that had a 0-2 2nd leg score?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="0-2"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,E2:E9="0-2"),4))
Level: medium