Table:
0
A
B
C
D
E
1
Club
Wins
Last win
Runners-up
Last final lost
2
Celtic
13
2013
4
2008
3
Rangers
5
2008
8
2011
4
Aberdeen
3
2001
1
2003
5
Heart of Midlothian
3
2000
1
2006
6
Dundee United
2
1991
3
1998
7
Hibernian
2
2009
2
1991
8
Dunfermline Athletic
1
1988
1
2013
9
Kilmarnock
1
2004
—
—
10
Dundee
—
—
3
1996
11
Ayr United
—
—
2
2002
12
Queen of the South
—
—
2
2012
13
Airdrieonians
—
—
1
1994
14
Motherwell
—
—
1
1987
15
St. Johnstone
—
—
1
1995
16
St. Mirren
—
—
1
2005

Questions and formulas:
Question: How many wins did Ayr United have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="ayr united"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,A2:A16="ayr united"),2))
Level: medium
Question: When was the final loss of the club last won in 2001 and has a total of 3 wins?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1=3)*(C1=2001)),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,(B2:B16=3)*(C2:C16=2001)),5))
Level: medium
Question: When was the last win for the club that had a final loss in 2011?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1=2011),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,E2:E16=2011),3))
Level: medium
Question: How many wins did the 8 time runner-up have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=8),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16=8),2))
Level: medium
Question: How many wins did the club have with the last win in 2000?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=2000),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,C2:C16=2000),2))
Level: medium