Table:
0
A
B
C
D
1
region id
region code
region name
2
1
AF
Afghanistan
3
2
AL
Albania
4
3
DZ
Algeria
5
4
DS
American Samoa
6
5
AD
Andorra
7
6
AO
Angola
8
7
AI
Anguilla
9
8
AQ
Antarctica
10
9
AG
Antigua and Barbuda
11
10
CY
Cyprus
12
11
CZ
Czech Republic
13
12
DK
Denmark
14
13
DJ
Djibouti

Questions and formulas:
Question: How many regions do we have?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: Count the number of regions.
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: Show all region code and region name sorted by the codes.
Formula: SORT(UNIQUE(HSTACK(B1,C1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B14,C2:C14)), 1, 1)
Level: medium
Question: What are the codes and names for all regions, sorted by codes?
Formula: SORT(UNIQUE(HSTACK(B1,C1,A1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B14,C2:C14,A2:A14)), 1, 1)
Level: medium
Question: List all region names in alphabetical order.
Formula: SORT(UNIQUE(C1), 1, 1)
Formula2: SORT(UNIQUE(C2:C14), 1, 1)
Level: easy
Question: Show names for all regions except for Denmark.
Formula: LET(query1,FILTER(A1:D1,C1<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:D14,C2:C14<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: Return the names of all regions other than Denmark.
Formula: LET(query1,FILTER(A1:D1,C1<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:D14,C2:C14<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: Total number of regions.
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: How many regions?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: The region code from a to z for each region name.
Formula: SORT(UNIQUE(HSTACK(B1,C1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B14,C2:C14)), 1, 1)
Level: medium
Question: Each region's ID, name and code in ascending order of region code.
Formula: SORT(UNIQUE(HSTACK(B1,C1,A1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B14,C2:C14,A2:A14)), 1, 1)
Level: medium
Question: Region names in alphabetical order
Formula: SORT(UNIQUE(C1), 1, 1)
Formula2: SORT(UNIQUE(C2:C14), 1, 1)
Level: easy
Question: The ids and names of all regions excluding denmark.
Formula: LET(query1,FILTER(A1:D1,C1<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:D14,C2:C14<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: The IDs and names of all regions except denmark.
Formula: LET(query1,FILTER(A1:D1,C1<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:D14,C2:C14<>"denmark"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: The number of regions.
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: The ID, name and code of each region in an ascending order of the code.
Formula: SORT(UNIQUE(HSTACK(B1,C1,A1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B14,C2:C14,A2:A14)), 1, 1)
Level: medium
Question: The region names from a to z.
Formula: SORT(UNIQUE(C1), 1, 1)
Formula2: SORT(UNIQUE(C2:C14), 1, 1)
Level: easy
Question: How many regions are there in total?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy
Question: How many regions?
Formula: SUM(A1)
Formula2: SUM(A2:A14)
Level: easy