Table:
0
A
B
C
D
E
1
Candidate
Party
Constituency
Year
Days
2
Alfred Dobbs
Labour
Smethwick
1945
1 1
3
John Sunderland
Labour
Preston
1945
122 1
4
John Whittaker
Labour
Heywood and Radcliffe
1945
137 1
5
Philip Clarke
Sinn Féin
Fermanagh and South Tyrone
1955
152 3x
6
Thomas Mitchell
Sinn Féin
Mid-Ulster
1955
152 3x
7
Harry West
Ulster Unionist
Fermanagh and South Tyrone
February 1974
224 2
8
Michael Ancram
Conservative
Berwick and East Lothian
February 1974
224 2a
9
Barry Henderson
Conservative
East Dunbartonshire
February 1974
224 2a
10
Paul Tyler
Liberal
Bodmin
February 1974
224 2a
11
Michael Winstanley
Liberal
Hazel Grove
February 1974
224 2b
12
James Godfrey MacManaway
Ulster Unionist
Belfast West
1950
238 3
13
Judith Chaplin
Conservative
Newbury
1992
316 1
14
Peter Law
Independent
Blaenau Gwent
2005
355 1

Questions and formulas:
Question: In 1955 which party did Thomas Mitchell belong to?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1=1955)*(A1="thomas mitchell")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(D2:D14=1955)*(A2:A14="thomas mitchell")),2))
Level: medium
Question: What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="ulster unionist")*(C1="fermanagh and south tyrone")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(B2:B14="ulster unionist")*(C2:C14="fermanagh and south tyrone")),5))
Level: medium
Question: What are the number of days in 1945 where the constituent was heywood and radcliffe?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1=1945)*(C1="heywood and radcliffe")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(D2:D14=1945)*(C2:C14="heywood and radcliffe")),5))
Level: medium
Question: What year was Hazel Grove the constituent for the liberal party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="liberal")*(C1="hazel grove")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(B2:B14="liberal")*(C2:C14="hazel grove")),4))
Level: medium