Table:
0
A
B
C
D
E
F
G
1
Name
Years
Gender
Area
Authority
Decile
Roll
2
Alexandra School
1–8
Coed
Alexandra
State
8
194
3
Clyde School
1–8
Coed
Clyde
State
9
127
4
Cromwell College
7–15
Coed
Cromwell
State
8
390
5
Cromwell Primary School
1–6
Coed
Cromwell
State
8
225
6
Dunstan High School
9–15
Coed
Alexandra
State
9
513
7
Goldfields School
1–6
Coed
Cromwell
State
7
225
8
Maniototo Area School
1–15
Coed
Ranfurly
State
7
170
9
Millers Flat School
1–8
Coed
Millers Flat
State
7
32
10
Omakau School
1–8
Coed
Omakau
State
8
34
11
Poolburn School
1–8
Coed
Oturehua
State
10
35
12
Roxburgh Area School
1–15
Coed
Roxburgh
State
4
166
13
St Gerard's School
1–8
Coed
Alexandra
State integrated
9
116
14
St John's School
1–8
Coed
Ranfurly
State integrated
7
55
15
Tarras School
1–8
Coed
Tarras
State
10
16
16
The Terrace School
1–8
Coed
Alexandra
State
8
388

Questions and formulas:
Question: What is the highest decile of Tarras school, which had a state authority?
Formula: MAX(FILTER(F1, (E1="state")*(A1="tarras school")))
Formula2: MAX(FILTER(F2:F16, (E2:E16="state")*(A2:A16="tarras school")))
Level: easy
Question: What is the decile of the school with a roll larger than 513?
Formula: SUM(FILTER(F1, G1>513))
Formula2: SUM(FILTER(F2:F16, G2:G16>513))
Level: easy
Question: What is the area of Cromwell Primary school, which has a state authority?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(E1="state")*(A1="cromwell primary school")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G16,(E2:E16="state")*(A2:A16="cromwell primary school")),4))
Level: medium