Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Rangers
1–2
Kaunas
0–0
1–2
3
Brann
2–2 ( a )
Ventspils
1–0
1–2
4
Inter Baku
1–3
Partizan
1–1
0–2
5
Tampere United
3–7
Artmedia Petržalka
1–3
2–4
6
Anorthosis
4–3
Rapid Wien
3–0
1–3
7
Domžale
2–6
Dinamo Zagreb
0–3
2–3
8
Panathinaikos
3–0
Dinamo Tbilisi
3–0
0–0
9
IFK Göteborg
3–5
Basel
1–1
2–4
10
Sheriff Tiraspol
0–3
Sparta Prague
0–1
0–2
11
Drogheda United
3–4
Dynamo Kyiv
1–2 [B ]
2–2
12
Anderlecht
3–4
BATE Borisov
1–2
2–2
13
Beitar Jerusalem
2–6
Wisła Kraków
2–1
0–5
14
Fenerbahçe
7–0
MTK Hungária
2–0
5–0
15
Aalborg BK
7–1
Modriča
5–0
2–1

Questions and formulas:
Question: When Team 1 is Aalborg BK, what is the 1st Leg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="aalborg bk"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,A2:A15="aalborg bk"),4))
Level: medium
Question: When Partizan is Team 2, what is the Agg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="partizan"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,C2:C15="partizan"),2))
Level: medium
Question: When Aalborg BK is Team 1, what is the 1st leg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="aalborg bk"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,A2:A15="aalborg bk"),4))
Level: medium