Table:
0
A
B
C
D
E
F
1
Round
Team #1
Agg.
Team #2
1st leg
2nd leg
2
2006 UEFA Intertoto Cup
2006 UEFA Intertoto Cup
2006 UEFA Intertoto Cup
2006 UEFA Intertoto Cup
2006 UEFA Intertoto Cup
2006 UEFA Intertoto Cup
3
First round
Shakhter Karagandy
4–6
MTZ-RIPO Minsk
1–5
3–1
4
Second round
Moscow
3–0
MTZ-RIPO Minsk
2–0
1–0
5
2006–07 UEFA Cup
2006–07 UEFA Cup
2006–07 UEFA Cup
2006–07 UEFA Cup
2006–07 UEFA Cup
2006–07 UEFA Cup
6
First qualifying round
Zagłębie Lubin
1–1 ( a )
Dinamo Minsk
1–1
0–0
7
First qualifying round
BATE Borisov
3–0
Nistru Otaci
2–0
1–0
8
Second qualifying round
Artmedia Bratislava
5–3
Dinamo Minsk
2–1
3–2
9
Second qualifying round
Rubin Kazan
5–0
BATE Borisov
3–0
2–0
10
2006–07 UEFA Champions League
2006–07 UEFA Champions League
2006–07 UEFA Champions League
2006–07 UEFA Champions League
2006–07 UEFA Champions League
2006–07 UEFA Champions League
11
First qualifying round
Shakhtyor Soligorsk
0–2
Široki Brijeg
0–1
0–1

Questions and formulas:
Question: What is the 2nd leg when team #1 is Rubin Kazan?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="rubin kazan"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,B2:B11="rubin kazan"),6))
Level: medium
Question: What is the agg when team #2 is 2006 UEFA Intertoto Cup?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="2006 uefa intertoto cup"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,D2:D11="2006 uefa intertoto cup"),3))
Level: medium