Table:
0
A
B
C
D
E
F
1
Name
Years
Area
Authority
Decile
Roll
2
Buller High School
9–15
Westport
State
3
361
3
Granity School
1–8
Granity
State
4
37
4
Inangahua Junction School
1–6
Inangahua Junction
State
6
14
5
Karamea Area School
1–15
Karamea
State
5
93
6
Maruia School
1–8
Maruia
State
9
19
7
Reefton Area School
1–15
Reefton
State
3
206
8
Sacred Heart School
1–8
Reefton
State integrated
4
34
9
St Canice's School
1–8
Westport
State integrated
4
160
10
Waimangaroa School
1–8
Waimangaroa
State
2
18
11
Westport North School
1–8
Westport
State
4
260
12
Westport South School
1–8
Westport
State
4
274

Questions and formulas:
Question: What is the average roll of a school with state authority and a decile of 9?
Formula: AVERAGE(FILTER(F1, (D1="state")*(E1=9)))
Formula2: AVERAGE(FILTER(F2:F12, (D2:D12="state")*(E2:E12=9)))
Level: easy
Question: Which area has state authority and a roll fewer than 18?
Formula: LET(query1,LET(query1,FILTER(A1:F1,D1="state"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<18))
Formula2: LET(query1,LET(query1,FILTER(A2:F12,D2:D12="state"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<18))
Level: hard
Question: What is the roll for the school with state authority and a decile of 9?
Formula: SUM(FILTER(F1, (D1="state")*(E1=9)))
Formula2: SUM(FILTER(F2:F12, (D2:D12="state")*(E2:E12=9)))
Level: easy
Question: What is the average decile of Westport South School?
Formula: AVERAGEIFS(E1,A1,"westport south school")
Formula2: AVERAGEIFS(E2:E12,A2:A12,"westport south school")
Level: easy