Table:
0
A
B
C
D
E
F
G
1
Order
Minister
Party
Prime Minister
Term start
Term end
Term in office
2
1
Don Grimes
Labor
Hawke
13December1984
16February1987
2years, 65days
3
2
Chris Hurford
Labor
Hawke
16February1987
24July1987
158 days
4
3
Neal Blewett
Labor
Hawke
24July1987
4April1990
2years, 254days
5
4
Brian Howe
Labor
Hawke
4April1990
7June1991
3years, 355days
6
4
Brian Howe
Labor
Hawke
7June1991
20December1991
3years, 355days
7
4
Brian Howe
Labor
Keating
20December1991
24March1993
3years, 355days
8
4
Brian Howe
Labor
Keating
24March1993
23December1993
3years, 355days
9
4
Brian Howe
Labor
Keating
23December1993
25March1994
3years, 355days
10
5
Carmen Lawrence
Labor
Keating
25March1994
11March1996
1year, 352days
11
6
Michael Wooldridge
Liberal
Howard
11March1996
21October1998
2years, 224days
12
7
Jocelyn Newman
Liberal
Howard
21October1998
30January2001
2years, 101days
13
8
Amanda Vanstone
Liberal
Howard
30January2001
7October2003
2years, 250days
14
9
Kay Patterson
Liberal
Howard
7October2003
27January2006
2years, 112days
15
10
Mal Brough
Liberal
Howard
27January2006
3December2007
1year, 310days
16
11
Jenny Macklin
Labor
Rudd
3December2007
24June2010
5years, 289days
17
11
Jenny Macklin
Labor
Gillard
24June2010
14December2011
5years, 289days
18
11
Jenny Macklin
Labor
Gillard
14December2011
27June2013
5years, 289days
19
11
Jenny Macklin
Labor
Rudd
27June2013
18September2013
5years, 289days
20
12
Kevin Andrews
Liberal
Abbott
18September2013
incumbent
136 days

Questions and formulas:
Question: What is the end of the term associted with the Prime Minister Abbott?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="abbott"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G20,D2:D20="abbott"),6))
Level: medium