Table:
0
A
B
C
D
E
1
Team
Outgoing manager
Manner of departure
Replaced by
Date of appointment
2
Motherwell
Maurice Malpas
Sacked
Mark McGhee
1 June 2007
3
Gretna
Andy Smith
Health
Davie Irons
18 July 2007
4
Heart of Midlothian
Valdas Ivanauskas
Mutual consent
Stephen Frail & Anatoly Korobochka
30 July 2007
5
Inverness CT
Charlie Christie
Resigned
Craig Brewster
27 August 2007
6
Hibernian
John Collins
Resigned
Mixu Paatelainen
10 January 2008
7
Gretna
David Irons
Resigned
Mick Wadsworth
19 February
8
Heart of Mdilothian
Stephen Frail
Mutual Consent
Csaba László
11 July

Questions and formulas:
Question: I want the date of appointment for manner of departure being sacked
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="sacked"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,C2:C8="sacked"),5))
Level: medium
Question: I want the manner of departure for 1 june 2007
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="1 june 2007"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,E2:E8="1 june 2007"),3))
Level: medium
Question: I want the outgoing manager for craig brewster
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="craig brewster"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8="craig brewster"),2))
Level: medium
Question: I want the team for replaced by mark mcghee
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="mark mcghee"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8="mark mcghee"),1))
Level: medium
Question: I want the outgoing manager for 19 february
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="19 february"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,E2:E8="19 february"),2))
Level: medium
Question: I want the team with replaced by being csaba lászló
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="csaba lászló"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8="csaba lászló"),1))
Level: medium