Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Glenavy School
1–8
Coed
Glenavy
State
9
74
3
Makikihi School
1–8
Coed
Makikihi
State
7
33
4
Morven School
1–6
Coed
Morven
State
5
30
5
St Andrew's School
1–8
Coed
St Andrews
State
5
100
6
St Patrick's School
1–8
Coed
Waimate
State integrated
3
35
7
Waihao Downs School
1–6
Coed
Waihao Downs
State
8
44
8
Waimate Centennial School
1–6
Coed
Waimate
State
3
146
9
Waimate High School
7–13
Coed
Waimate
State
4
310
10
Waimate Main School
1–6
Coed
Waimate
State
2
78
11
Waituna Creek School
1–8
Coed
Waituna
State
5
39

Questions and formulas:
Question: What years does the school have that's in Makikihi?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1="makikihi"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G11,D2:D11="makikihi"),2))
Level: medium
Question: In what area is Morven School?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="morven school"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G11,A2:A11="morven school"),4))
Level: medium
Question: What years does the school have with a roll of 33?
Formula: LET(query1,SUMMARIZE(B1,SUMX(G1)),FILTER(query1,CHOOSECOLS(query1,2)=33))
Formula2: LET(query1,SUMMARIZE(B2:B11,SUMX(G2:G11)),FILTER(query1,CHOOSECOLS(query1,2)=33))
Level: hard