Table:
0
A
B
C
D
E
F
G
1
Election
1st Member
1st Party
2nd Member
2nd Party
3rd Member
3rd Party
2
1918
Sir William Cheyne
Coalition Conservative
Dugald McCoig Cowan
Coalition Liberal
Sir Henry Craik
Coalition Conservative
3
1922
Sir George Berry
Unionist
Dugald McCoig Cowan
Liberal
Sir Henry Craik
Coalition Conservative
4
Apr 1927
Sir George Berry
Unionist
Dugald McCoig Cowan
Liberal
John Buchan
Unionist
5
1931
Noel Skelton
Unionist
Dugald McCoig Cowan
Liberal
John Buchan
Unionist
6
Mar 1934
Noel Skelton
Unionist
George Alexander Morrison
Liberal
John Buchan
Unionist
7
Jun 1935
Noel Skelton
Unionist
George Alexander Morrison
National Liberal
Sir John Kerr
Unionist
8
Jan 1936
Ramsay MacDonald
National Labour
George Alexander Morrison
National Liberal
Sir John Kerr
Unionist
9
Feb 1938
Sir John Anderson
National
George Alexander Morrison
National Liberal
Sir John Kerr
Unionist
10
Apr 1945
Sir John Anderson
National
Sir John Boyd-Orr
Independent
Sir John Kerr
Unionist
11
Nov 1946
Sir John Anderson
National
Walter Elliot
Unionist
Sir John Kerr
Unionist
12
1950
University constituencies abolished
University constituencies abolished
University constituencies abolished
University constituencies abolished
University constituencies abolished
University constituencies abolished

Questions and formulas:
Question: What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(G1="unionist")*(D1="sir john boyd-orr")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,(G2:G12="unionist")*(D2:D12="sir john boyd-orr")),3))
Level: medium
Question: Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(D1="george alexander morrison")*(C1="unionist")*(F1="john buchan")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,(D2:D12="george alexander morrison")*(C2:C12="unionist")*(F2:F12="john buchan")),1))
Level: medium
Question: What was the 2nd Party in the 1918 Election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1=1918),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,A2:A12=1918),5))
Level: medium
Question: What 3rd Member had 2nd Member of University Constituencies abolished?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="university constituencies abolished"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,D2:D12="university constituencies abolished"),6))
Level: medium
Question: What was the 3rd Party in the Election of 1922?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1=1922),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,A2:A12=1922),7))
Level: medium
Question: What was the 1st Party when the 2nd Party was Independent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,E1="independent"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,E2:E12="independent"),3))
Level: medium