Table:
0
A
B
C
D
E
1
Election
First member
1st Party
Second member
2nd Party
2
1832
John Ivatt Briscoe
Liberal
Aubrey Beauclerk
Liberal
3
1835
Richard Alsager
Conservative
Aubrey Beauclerk
Liberal
4
1837
Richard Alsager
Conservative
Henry Kemble
Conservative
5
1841 by-election
Edmund Antrobus
Conservative
Henry Kemble
Conservative
6
1847
Peter John Locke King
Liberal
Thomas Alcock
Liberal
7
1865
Peter John Locke King
Liberal
Charles Buxton
Liberal
8
1871 by-election
Peter John Locke King
Liberal
James Watney
Conservative
9
1874
William Grantham
Conservative
James Watney
Conservative
10
1885
Constituency abolished
Constituency abolished
Constituency abolished
Constituency abolished

Questions and formulas:
Question: What is Election, when 2nd Party is "Constituency Abolished"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="constituency abolished"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,E2:E10="constituency abolished"),1))
Level: medium
Question: What is 2nd Party, when Election is "1865"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="1865"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="1865"),5))
Level: medium
Question: What is Election, when 2nd Party is "Conservative", and when First Member is "Edmund Antrobus"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="conservative")*(B1="edmund antrobus")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(E2:E10="conservative")*(B2:B10="edmund antrobus")),1))
Level: medium
Question: What is First Member, when Election is "1871 by-election"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="1871 by-election"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="1871 by-election"),2))
Level: medium
Question: What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="peter john locke king")*(D1="james watney")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(B2:B10="peter john locke king")*(D2:D10="james watney")),3))
Level: medium
Question: What is Second Member, when Election is "1835"?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="1835"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="1835"),4))
Level: medium