Table:
0
A
B
C
D
E
F
1
Quartier
% 0-19 years
% 20-39 years
% 40-59 years
% 60-74 years
% 75 years and +
2
La Capelette
20,32%
33,86%
24,64%
13,62%
7,56%
3
Menpenti
16,22%
34,11%
24,37%
15,67%
9,62%
4
Pont-de-Vivaux
23,74%
24,94%
24,43%
16,27%
10,63%
5
Saint-Loup
25,21%
25,02%
27,05%
15,16%
7,55%
6
Saint-Tronc
24,36%
25,88%
25,31%
16,37%
8,08%
7
La Timone
21,39%
35,24%
24,97%
11,31%
7,09%
8
Arrondissement
23,16%
28,24%
25,58%
15,00%
8,02%

Questions and formulas:
Question: How many o-19% are where the quartier is in saint-loup?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Saint-Loup"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Saint-Loup"),2))
Level: medium
Question: how many 20-39% are in pont-de-vivaux?
Formula: ROWS(UNIQUE(FILTER(C1, A1="Pont-de-Vivaux")))
Formula2: ROWS(UNIQUE(FILTER(C2:C8, A2:A8="Pont-de-Vivaux")))
Level: medium
Question: the quartier menpenti has how many 40-59 year olds?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Menpenti"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Menpenti"),4))
Level: medium