Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
PAOK
4–6
PSV Eindhoven
3–2
1–4
3
Fiorentina
0–3
Lille
0–1
0–2
4
Valencia
1–1 (5–4 p )
Celtic
1–0
0–1 ( aet )
5
Servette
3–0
Hertha BSC
0–0
3–0
6
Ipswich Town
2–4
Internazionale
1–0
1–4
7
Rangers
0–0 (4–3 p )
Paris Saint-Germain
0–0
0–0 ( aet )
8
Feyenoord
3–2
Freiburg
1–0
2–2
9
AEK Athens
4–3
Litex Lovech
3–2
1–1
10
Grasshoppers
3–4
Leeds United
1–2
2–2
11
Parma
4–1
Brøndby
1–1
3–0
12
Bordeaux
1–2
Roda JC
1–0
0–2
13
Slovan Liberec
5–2
Mallorca
3–1
2–1
14
Hapoel Tel Aviv
3–1
Lokomotiv Moscow
2–1
1–0
15
Copenhagen
0–2
Borussia Dortmund
0–1
0–1
16
Milan
3–1
Sporting CP
2–0
1–1
17
Club Brugge
4–4 ( a )
Lyon
4–1
0–3

Questions and formulas:
Question: What is the 1st leg with Team 2 Lyon?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="lyon"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E17,C2:C17="lyon"),4))
Level: medium
Question: Which team is Team 1 with a Team 2 being Sporting CP?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="sporting cp"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E17,C2:C17="sporting cp"),1))
Level: medium
Question: What is the second leg for Team 1 Servette?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="servette"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E17,A2:A17="servette"),5))
Level: medium