Table:
0
A
B
C
D
E
F
G
H
1
City
Population
Registered voters
Democratic
Republican
D–R spread
Other
No party preference
2
Campbell
39108
53.4%
45.3%
23.8%
+21.5%
7.3%
26.2%
3
Cupertino
57459
48.2%
37.0%
20.0%
+17.0%
4.0%
40.4%
4
Gilroy
47808
42.7%
48.5%
25.2%
+23.3%
6.8%
22.1%
5
Los Altos
28752
67.4%
41.5%
29.4%
+12.1%
4.3%
26.2%
6
Los Altos Hills
7912
73.6%
34.9%
33.6%
+1.3%
4.3%
28.7%
7
Los Gatos
29165
65.0%
41.0%
31.5%
+9.5%
6.2%
23.7%
8
Milpitas
66038
40.4%
42.5%
19.2%
+23.3%
5.3%
35.0%
9
Monte Sereno
3338
73.7%
37.1%
36.9%
+0.2%
6.1%
22.3%
10
Morgan Hill
37278
52.6%
40.9%
32.0%
+8.9%
6.9%
23.0%
11
Mountain View
73394
46.0%
49.1%
16.4%
+32.7%
5.3%
30.8%
12
Palo Alto
63475
59.7%
52.6%
15.5%
+37.1%
3.8%
29.2%
13
San Jose
939688
44.6%
46.8%
20.6%
+26.2%
6.0%
28.8%
14
Santa Clara
114482
41.9%
46.5%
19.9%
+26.6%
6.1%
29.7%
15
Saratoga
29781
66.8%
34.2%
31.5%
+2.7%
3.9%
31.8%

Questions and formulas:
Question: What is the population if the city is Gilroy?
Formula: SUMIFS(B1,A1,"Gilroy")
Formula2: SUMIFS(B2:B15,A2:A15,"Gilroy")
Level: easy
Question: If Democratic is 42.5%, what is the city?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,D1="42.5%"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H15,D2:D15="42.5%"),1))
Level: medium
Question: If the registered voters is 66.8%, what is the minimum population?
Formula: MINIFS(B1,C1,"66.8%")
Formula2: MINIFS(B2:B15,C2:C15,"66.8%")
Level: easy
Question: What is the other is the city is Los Gatos?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,A1="Los Gatos"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H15,A2:A15="Los Gatos"),7))
Level: medium
Question: What is the d-r spread if the no party preference is 31.8%?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,H1="31.8%"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H15,H2:H15="31.8%"),6))
Level: medium
Question: If the city is Santa Clara, what is the population total number?
Formula: SUMIFS(B1,A1,"Santa Clara")
Formula2: SUMIFS(B2:B15,A2:A15,"Santa Clara")
Level: easy