Table:
0
A
B
C
D
E
F
1
By-election
Electorate
Date
Incumbent
Reason
Winner
2
1880
Rangitikei
8 May
William Jarvis Willis
Resignation
William Fox
3
1880
Waitaki
16 June
Thomas William Hislop
Resignation
George Jones
4
1880
Waikaia
21 September
George Ireland
Death
Horace Bastings
5
1881
Suburbs of Nelson
11 January
Andrew Richmond
Death
Arthur Collins
6
1881
Southern Maori
1 March
Ihaia Tainui
Resignation
Hori Kerei Taiaroa
7
1881
City of Nelson
7 June
Acton Adams
Resignation
Henry Levestam

Questions and formulas:
Question: When arthur collins is the winner what is the reason?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Arthur Collins"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,F2:F7="Arthur Collins"),5))
Level: medium
Question: When ihaia tainui is the incumbent what is the date?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="Ihaia Tainui"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,D2:D7="Ihaia Tainui"),3))
Level: medium
Question: When rangitikei is the electorate who is the winner?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Rangitikei"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Rangitikei"),6))
Level: medium
Question: When waikaia is the electorate what is the highest by-election?
Formula: MAXIFS(A1,B1,"Waikaia")
Formula2: MAXIFS(A2:A7,B2:B7,"Waikaia")
Level: easy
Question: When 1881 is the by-election and death is the reason who is the incumbent?
Formula: LET(query1,LET(query1,FILTER(A1:F1,E1="Death"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=1881))
Formula2: LET(query1,LET(query1,FILTER(A2:F7,E2:E7="Death"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,2)=1881))
Level: hard