Table:
0
A
B
C
D
E
F
G
H
1
address id
address content
city
zip postcode
state province county
country
state
other address details
2
1
9443 Boyle Route Suite 857
Lucasville
416
Colorado
USA
3
2
1969 Jabari Port Suite 393
New Sabryna
721
SouthCarolina
USA
4
3
295 Hackett Curve
Reingertown
255
NewJersey
USA
5
4
92865 Margaretta Streets Suite 467
Gleasonmouth
940
Arizona
USA
6
5
08996 Brisa Lane Apt. 583
Stantonville
354
Mississippi
USA
7
6
826 Murray Locks Apt. 654
South Meghanview
918
Colorado
USA
8
7
59540 Grover Wells Apt. 814
Lake Walterton
767
Virginia
USA
9
8
78614 Maybell Alley Suite 057
South Bellaland
921
Florida
USA
10
9
9168 King Rest
Felicityfort
482
Texas
USA
11
10
120 Noble Radial
East Julianaside
821
Texas
USA
12
11
618 Odie Villages Suite 133
Lake Geovannyton
623
NewMexico
USA
13
12
16438 Herman Pine
New Terrillport
684
Arkansas
USA
14
13
47831 Martin Islands
Port Lilyan
235
RhodeIsland
USA
15
14
995 Weimann Gateway
Lake Ryann
470
Kentucky
USA
16
15
41632 Kerluke Field
East Pascale
720
Texas
USA

Questions and formulas:
Question: Retrieve the list of all cities.
Formula: UNIQUE(C1)
Formula2: UNIQUE(C2:C16)
Level: easy
Question: List all the distinct cities
Formula: UNIQUE(C1)
Formula2: UNIQUE(C2:C16)
Level: easy
Question: Find the city with zip post code 255
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,D1=255),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H16,D2:D16=255),3))
Level: medium
Question: Which city is post code 255 located in?
Formula: FILTER(C1,D1=255)
Formula2: FILTER(C2:C16,D2:D16=255)
Level: easy
Question: List the countries having more than 4 addresses listed.
Formula: LET(query1,SUMMARIZE(F1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>4))
Formula2: LET(query1,SUMMARIZE(F2:F16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>4))
Level: hard
Question: For which countries are there more than four distinct addresses listed?
Formula: LET(query1,SUMMARIZE(F1,DCOUNTX(A1)),FILTER(query1,CHOOSECOLS(query1,2)>4))
Formula2: LET(query1,SUMMARIZE(F2:F16,DCOUNTX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,2)>4))
Level: hard