Table:
0
A
B
C
D
E
F
1
City district
Area km²
Population 2007 census(hab)
Housing (2007)
Density (hab/km²)
Elevation msl
2
Cuzco
116.22km²
108,798*
28,476
936.1
3,399 msl
3
San Jerónimo
103.34km²
28,856*
8,942
279.2
3,244 msl
4
San Sebastián
89.44km²
85,472*
18,109
955.6
3,244 msl
5
Santiago
69.72km²
66,277*
21,168
950.6
3,400 msl
6
Wanchaq
6.38km²
54,524*
14,690
8,546.1
3,366 msl
7
Total
385.1km²
358,052*
91,385
929.76
—
8
* Census data conducted by INEI
* Census data conducted by INEI
* Census data conducted by INEI
* Census data conducted by INEI
* Census data conducted by INEI
* Census data conducted by INEI

Questions and formulas:
Question: What is the elevation of the city with a number of 91,385 Housing dwellings in 2007?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=91385),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=91385),6))
Level: medium
Question: What is the density of San Sebastián?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="san sebastián"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="san sebastián"),5))
Level: medium
Question: What is the density of the city with an elevation of 3,400 msl?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="3,400 msl"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,F2:F8="3,400 msl"),5))
Level: medium
Question: What is the area of the city with a density of 8,546.1?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1=8546.1),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,E2:E8=8546.1),2))
Level: medium
Question: What is the area of the city with a density of 955.6?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1=955.6),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,E2:E8=955.6),2))
Level: medium
Question: What is the density of San Sebastián?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="san sebastián"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="san sebastián"),5))
Level: medium