Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Makedonija
0–4
Sloga Jugomagnat
0–2
0–2
3
Tikveš
2–3
Vlazrimi
1–0
1–3
4
Bregalnica Kraun
2–2 (3–1 p )
Lozar
2–0
0–2 ( aet )
5
Kumanovo
1–6
Sileks
0–2
1–4
6
Rabotnički
4–0
Vardar
3–0
1–0
7
Madžari Solidarnost
2–1
Cementarnica
1–0
1–1
8
Sateska
2–14
Baškimi
2–7
0–7
9
Miravci
1–9
Turnovo
1–3
0–6

Questions and formulas:
Question: What is the agg when team 2 was Cementarnica?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="cementarnica"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="cementarnica"),2))
Level: medium