Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Benin
6 - 3
Morocco
3 - 0
3 - 3
3
Tunisia
0 - 2
Mali
0 - 1
0 - 1
4
Ghana
5 - 2
Angola
5 - 1
0 - 1
5
Gambia
4 - 1
Mauritania
1 - 0
3 - 1
6
Nigeria
3 - 0
Senegal
2 - 0
1 - 0
7
Kenya
1 - 1(2-4 PSO)
Sudan
1 - 0
0 - 1
8
Egypt
6 - 0
Zimbabwe
5 - 0
1 - 0
9
Zambia
3 - 0
Mauritius
1 - 0
2 - 0
10
Cameroon
2 - 0
Burundi
1 - 0
1 - 0
11
Republic of the Congo
3 - 1
DR Congo
1 - 1
2 - 0
12
Gabon
0 - 2
Botswana
0 - 2
0 - 0
13
South Africa
8 - 2
Réunion
1 - 1
7 - 1
14
Côte d'Ivoire
3 - 2
Guinea
1 - 1
2 - 1
15
Burkina Faso
6 - 0
Niger
3 - 0
3 - 0

Questions and formulas:
Question: What is the 1st leg result when team 1 is Gambia?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="gambia"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,A2:A15="gambia"),4))
Level: medium
Question: What is the 2nd leg result when team 2 is Morocco?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="morocco"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,C2:C15="morocco"),5))
Level: medium