Table:
0
A
B
C
D
E
1
Election
First member
First party
Second member
Second party
2
1832
Sir Rowland Hill, Bt
Tory
John Cotes
Whig
3
1834
Sir Rowland Hill, Bt
Conservative
John Cotes
Whig
4
1835
Sir Rowland Hill, Bt
Conservative
William Ormsby-Gore
Conservative
5
1843 by-election
Viscount Clive
Conservative
William Ormsby-Gore
Conservative
6
1848 by-election
John Whitehall Dod
Conservative
William Ormsby-Gore
Conservative
7
1857
John Whitehall Dod
Conservative
Hon. Rowland Hill
Conservative
8
1859
John Ormsby-Gore
Conservative
Hon. Rowland Hill
Conservative
9
1865
John Ormsby-Gore
Conservative
Hon. Charles Cust
Conservative
10
1866 by-election
John Ormsby-Gore
Conservative
Hon. Adelbert Brownlow-Cust
Conservative
11
1867 by-election
John Ormsby-Gore
Conservative
Viscount Newport
Conservative
12
1876 by-election
Stanley Leighton
Conservative
Viscount Newport
Conservative
13
1885
Constituency abolished
Constituency abolished
Constituency abolished
Constituency abolished

Questions and formulas:
Question: What is the second party that has a conservative first party in the 1834 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="conservative")*(A1=1834)),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,(C2:C13="conservative")*(A2:A13=1834)),5))
Level: medium
Question: Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(B1="sir rowland hill, bt")*(E1="conservative")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,(B2:B13="sir rowland hill, bt")*(E2:E13="conservative")),4))
Level: medium
Question: What is the first party with second member Hon. Rowland Hill, in the 1857 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="hon. rowland hill")*(A1=1857)),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,(D2:D13="hon. rowland hill")*(A2:A13=1857)),3))
Level: medium
Question: Who is the second member that is a second party Whig in the 1834 election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="whig")*(A1=1834)),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,(E2:E13="whig")*(A2:A13=1834)),4))
Level: medium
Question: What is the second party that has a conservative first party and second member John Cotes?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="conservative")*(D1="john cotes")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E13,(C2:C13="conservative")*(D2:D13="john cotes")),5))
Level: medium