Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Pelister
0–4
Rabotnički
0–0
0–4
3
Baškimi
3–6
Makedonija
3–4
0–2
4
Ilinden
2–1
Škendija 79
0–1
2–0
5
Milano
5–0
Bregalnica Štip
3–0
2–0
6
Vardar Negotino
3–7
Nov Milenium
2–3
1–4
7
Teteks
0–4
Vardar
0–3
0–1
8
Renova
6–2
Napredok
5–1
1–1
9
Sileks
1–2
Skopje
0–1
1–1

Questions and formulas:
Question: What was the 1st leg when team 2 was nov milenium?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="nov milenium"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="nov milenium"),4))
Level: medium
Question: What was the 1st leg for a team 1 of Teteks?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="teteks"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="teteks"),4))
Level: medium