Table:
0
A
B
C
D
E
1
shop id
shop name
location
open date
open year
2
1
Dinas Device
Dinas
1-Jan
2014
3
2
Best Buy
Cymmer
15-Jul
2006
4
3
Ferndale
Blaenllechau
8-Nov
2009
5
4
Apple
Blaenllechau
10-Jun
2009
6
5
Pentre store
Pentre
24-Feb
2011
7
6
Tynewydd repair
Porth
11-Apr
2007
8
7
Dinas store
Dinas
13-Jan
2009
9
8
Naval repair
Penygraig
10-Dec
2010
10
9
Gelli repair
Gelli
21-Aug
2013
11
10
Naval's shop
Penygraig
27-Jan
2014
12
11
ATnT
Maerdy
23�?4 December
2015
13
12
National Cellphone
Wattstown
18-Feb
2017

Questions and formulas:
Question: What are the names of shops in ascending order of open year?
Formula: SORTBY(B1,E1,1)
Formula2: SORTBY(B2:B13,E2:E13,1)
Level: easy
Question: Return the names of shops, ordered by year of opening ascending.
Formula: SORTBY(B1,E1,1)
Formula2: SORTBY(B2:B13,E2:E13,1)
Level: easy
Question:  What are the names and location in ascending alphabetical order of name.
Formula: SORT(UNIQUE(HSTACK(B1,C1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,C2:C13)), 1, 1)
Level: medium
Question: Return the names and locations of shops, ordered by name in alphabetical order.
Formula: SORTBY(CHOOSE({1,2},B1,C1),B1,1)
Formula2: SORTBY(CHOOSE({1,2},B2:B13,C2:C13),B2:B13,1)
Level: easy
Question: List the open date of open year of the shop named "Apple".
Formula: CHOOSE({1,2},FILTER(D1,B1="Apple"),FILTER(E1,B1="Apple"))
Formula2: CHOOSE({1,2},FILTER(D2:D13,B2:B13="Apple"),FILTER(E2:E13,B2:B13="Apple"))
Level: medium
Question: What are the open dates and years for the shop named Apple?
Formula: CHOOSE({1,2},FILTER(D1,B1="Apple"),FILTER(E1,B1="Apple"))
Formula2: CHOOSE({1,2},FILTER(D2:D13,B2:B13="Apple"),FILTER(E2:E13,B2:B13="Apple"))
Level: medium
Question: What's the open year and date of apple?
Formula: LET(query1,FILTER(A1:E1,B1="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Formula2: LET(query1,FILTER(A2:E13,B2:B13="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Level: hard
Question: apple's opening date and opening year
Formula: LET(query1,FILTER(A1:E1,B1="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Formula2: LET(query1,FILTER(A2:E13,B2:B13="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Level: hard
Question: Names of shops from earliest to latest opening year.
Formula: SORT(UNIQUE(HSTACK(B1,E1)), 2, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,E2:E13)), 2, 1)
Level: medium
Question: Shop names by opening years in ascending order
Formula: SORT(UNIQUE(HSTACK(B1,E1)), 2, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,E2:E13)), 2, 1)
Level: medium
Question: locations sorted by shop names in alphabetical order
Formula: SORT(UNIQUE(HSTACK(B1,C1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,C2:C13)), 1, 1)
Level: medium
Question: Names of shops by their open years from earliest to latest.
Formula: SORT(UNIQUE(HSTACK(B1,E1)), 2, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,E2:E13)), 2, 1)
Level: medium
Question: Names of shops opened from earliest to latest.
Formula: SORT(UNIQUE(HSTACK(B1,D1)), 2, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,D2:D13)), 2, 1)
Level: medium
Question: the location in the ascending order of shop name.
Formula: SORT(UNIQUE(HSTACK(B1,C1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B13,C2:C13)), 1, 1)
Level: medium
Question: the open date and open year of apple
Formula: LET(query1,FILTER(A1:E1,B1="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Formula2: LET(query1,FILTER(A2:E13,B2:B13="apple"),UNIQUE(CHOOSECOLS(query1,4,5)))
Level: hard