Table:
0
A
B
C
D
E
F
1
Team
Outgoing manage
Manner
Date of vacancy
Incoming manager
Date of appointment
2
Académica de Coimbra
Artur Jorge
Resigned
28 August 2003
Vítor Oliveira
28 August 2003
3
Vitória de Guimarães
Augusto Inácio
Sacked
8 December 2003
Jorge Jesus
8 December 2003
4
Paços de Ferreira
José Gomes
Mutual Consent
21 October 2003
José Mota
22 October 2003
5
Estrela da Amadora
João Alves
Sacked
3 November 2003
Miguel Quaresma
3 November 2003
6
Gil Vicente
Mário Reis
Sacked
11 November 2003
Luís Campos
25 November 2003
7
Belenenses
Manuel José
Resigned
22 November 2003
Bogićević
23 November 2003
8
Belenenses
Bogićević
Sacked
19 January 2004
Augusto Inácio
20 January 2004
9
Académica de Coimbra
Vítor Oliveira
Sacked
26 January 2004
João Pereira
27 January 2004

Questions and formulas:
Question: Who was the outgoing manager when the incoming manager was joão pereira?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="João Pereira"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,E2:E9="João Pereira"),2))
Level: medium
Question: What team(s) had an outgoing manager of joão alves?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="João Alves"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,B2:B9="João Alves"),1))
Level: medium
Question: What day did the job open up when bogićević was outgoing?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Bogićević"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,B2:B9="Bogićević"),4))
Level: medium