Table:
0
A
B
C
D
E
1
Election
1st Member
1st Party
2nd Member
2nd Party
2
1832
The Viscount Palmerston
Liberal
Sir George Staunton, Bt
Liberal
3
1835
John Willis Fleming
Conservative
Henry Combe Compton
Conservative
4
1842 by-election
Lord Charles Wellesley
Conservative
Henry Combe Compton
Conservative
5
1852
Lord William Cholmondeley
Conservative
Henry Combe Compton
Conservative
6
1857
Sir Jervoise Clarke-Jervois, Bt
Liberal
Hon. Ralph Dutton
Conservative
7
1865
Sir Jervoise Clarke-Jervois, Bt
Liberal
Henry Hamlyn-Fane
Conservative
8
1868
Hon. William Temple
Liberal
Lord Henry Montagu-Douglas-Scott
Conservative
9
1880
Francis Compton
Conservative
Lord Henry Montagu-Douglas-Scott
Conservative
10
1884 by-election
Francis Compton
Conservative
Sir Frederick Fitzwygram, Bt
Conservative
11
1885
constituency abolished
constituency abolished
constituency abolished
constituency abolished

Questions and formulas:
Question: In which election was the constituency abolished?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="constituency abolished"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,B2:B11="constituency abolished"),1))
Level: medium
Question: What was the 1st party with a 1st member of John Willis Fleming?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="john willis fleming"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,B2:B11="john willis fleming"),3))
Level: medium
Question: What is the 1st party when the 2nd party is constituency abolished?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="constituency abolished"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,E2:E11="constituency abolished"),3))
Level: medium
Question: Who is the 2nd member during 1885 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1=1885),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,A2:A11=1885),4))
Level: medium
Question: What is the 1st party during the 1857 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1=1857),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,A2:A11=1857),3))
Level: medium