Table:
0
A
B
C
D
E
1
host id
name
nationality
age
host
2
1
Austin Daye
United States
43
3
2
Lloyd Daniels
United States
37
4
3
Kornel David
Hungary
31
5
4
Antonio Davis
United States
26
6
5
Ed Davis
United States
45
7
6
Hubert Davis
United States
47
8
7
Carlos Delfino
Argentina
30
9
8
Justin Dentmon
United States
40
10
9
DeMar DeRozan
United States
31
11
10
Derrick Dial
United States
60

Questions and formulas:
Question: Show different nationalities along with the number of hosts of each nationality.
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C11,DCOUNTX(E2:E11))
Level: easy
Question: How many hosts does each nationality have?
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C11,DCOUNTX(E2:E11))
Level: easy
Question: Which nationality has the most hosts?
Formula: TAKE(SORT(SUMMARIZE(C1,DCOUNTX(E1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(C2:C11,DCOUNTX(E2:E11)), 2, -1), 1)
Level: hard
Question: Show the name and the nationality of the oldest host.
Formula: LET(a,SORTBY(CHOOSE({1,2},B1,C1),D1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(CHOOSE({1,2},B2:B11,C2:C11),D2:D11,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: What are the name and the nationality of the host of the highest age?
Formula: LET(a,SORTBY(CHOOSE({1,2},B1,C1),D1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(CHOOSE({1,2},B2:B11,C2:C11),D2:D11,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Compare the number of hosts from nationality to nationality.
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C11,DCOUNTX(E2:E11))
Level: easy
Question: Total number of hosts for each nationality.
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C11,DCOUNTX(E2:E11))
Level: easy
Question: The nationality with the most hosts.
Formula: TAKE(SORT(SUMMARIZE(C1,DCOUNTX(E1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(C2:C11,DCOUNTX(E2:E11)), 2, -1), 1)
Level: hard
Question: What is the name and nationality of the oldest host?
Formula: LET(a,HSTACK(B1,C1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(D1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B11,C2:C11,E2:E11),b,E2:E11,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E11,SUMX(D2:D11)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The name and nationality of the oldest host.
Formula: LET(a,HSTACK(B1,C1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(D1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B11,C2:C11,E2:E11),b,E2:E11,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E11,SUMX(D2:D11)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The number of hosts for each nationality.
Formula: SUMMARIZE(C1,DCOUNTX(E1))
Formula2: SUMMARIZE(C2:C11,DCOUNTX(E2:E11))
Level: easy