Table:
0
A
B
C
D
E
F
1
Party
County
City
Borough
Town
Total
2
Fine Gael
305
35
16
200
556
3
Fianna Fáil
201
17
11
178
407
4
Labour Party
94
38
13
86
231
5
Sinn Féin
41
13
8
65
127
6
Green Party
3
0
2
13
18
7
WUAG
2
0
4
1
7
8
Socialist Party
3
1
1
1
6
9
People Before Profit
3
2
0
0
5
10
Workers' Party
0
2
0
0
2
11
South Kerry Independent
1
0
0
1
2
12
Christian Solidarity
0
0
0
0
0
13
Independent
102
22
10
141
275
14
Totals
753
130
60
684
1,627

Questions and formulas:
Question: How many counties have people before profit as the party, and a borough greater than 0?
Formula: SUM(FILTER(B1, (A1="people before profit")*(D1>0)))
Formula2: SUM(FILTER(B2:B14, (A2:A14="people before profit")*(D2:D14>0)))
Level: easy
Question: How many counties have 2 as the total, 0 as the city with a town less than 1?
Formula: SUM(FILTER(B1, (F1=2)*(C1=0)*(E1<1)))
Formula2: SUM(FILTER(B2:B14, (F2:F14=2)*(C2:C14=0)*(E2:E14<1)))
Level: easy
Question: What average city has a total less than 2, with a borough greater than 0?
Formula: AVERAGE(FILTER(C1, (F1<2)*(D1>0)))
Formula2: AVERAGE(FILTER(C2:C14, (F2:F14<2)*(D2:D14>0)))
Level: easy