Table:
0
A
B
C
D
E
1
Election
1st Member
1st Party
2nd Member
2nd Party
2
1832
Lord John Lennox
Whig
The Earl of Surrey
Whig
3
1841
The Earl of March
Conservative
Charles Wyndham
Conservative
4
1847
The Earl of March
Conservative
Richard Prime
Conservative
5
1854 by-election
The Earl of March
Conservative
Henry Wyndham
Conservative
6
1860 by-election
Walter Barttelot
Conservative
Henry Wyndham
Conservative
7
1869 by-election
Walter Barttelot
Conservative
The Earl of March
Conservative
8
1885
constituency abolished
constituency abolished
constituency abolished
constituency abolished

Questions and formulas:
Question: which election year has henry wyndham as the 2nd member and walter barttelot as 1st member?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="henry wyndham")*(B1="walter barttelot")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(D2:D8="henry wyndham")*(B2:B8="walter barttelot")),1))
Level: medium
Question: what election year has 2nd party conservative with 2nd member henry wyndham and 1st member walter barttelot?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="conservative")*(D1="henry wyndham")*(B1="walter barttelot")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(E2:E8="conservative")*(D2:D8="henry wyndham")*(B2:B8="walter barttelot")),1))
Level: medium
Question: what is the 1st pary when the second is whig?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="whig"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,E2:E8="whig"),3))
Level: medium
Question: what is the election year with henry wyndham as 2nd member and walter barttelot as 1st?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="henry wyndham")*(B1="walter barttelot")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(D2:D8="henry wyndham")*(B2:B8="walter barttelot")),1))
Level: medium