Table:
0
A
B
C
D
E
F
1
Team
Outgoing manager
Manner of departure
Date of vacancy
Replaced by
Date of appointment
2
Rangers
Walter Smith
Resigned
May 1998
Dick Advocaat
June 1998
3
Celtic
Wim Jansen
Resigned
May 1998
Jozef Vengloš
June 1998
4
Dundee United
Tommy McLean
Mutual consent
4 September 1998
Paul Sturrock
5 September 1998
5
St. Johnstone
Paul Sturrock
Resigned
5 September 1998
Sandy Clark
7 September 1998
6
Motherwell
Harri Kampman
Resigned
15 October 1998
Billy Davies
15 October 1998
7
Aberdeen
Alex Miller
Sacked
8 December 1998
Paul Hegarty (Caretaker)
8 December 1998
8
Dunfermline Athletic
Bert Paton
Resigned
5 January 1999
Dick Campbell (Caretaker)
5 January 1999

Questions and formulas:
Question: What is Aberdeen team's date of vacancy?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="aberdeen"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="aberdeen"),4))
Level: medium
Question: What is Motherwell Team's manner of departure?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="motherwell"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="motherwell"),3))
Level: medium
Question: What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(C1="resigned")*(E1="sandy clark")),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,(C2:C8="resigned")*(E2:E8="sandy clark")),6))
Level: medium
Question: What manner of departure was Dick Advocaat replaced by?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="dick advocaat"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,E2:E8="dick advocaat"),3))
Level: medium