Table:
0
A
B
C
D
E
1
department name
department number
manager ssn
manager start date
department
2
Headquarters
1
888665555
1981-06-19
3
Administration
4
987654321
1995-01-01
4
Research
5
333445555
1988-05-22

Questions and formulas:
Question: List all department names ordered by their starting date.
Formula: SORTBY(A1,D1,1)
Formula2: SORTBY(A2:A4,D2:D4,1)
Level: easy
Question: Names of departments from the longest-serving manager to the shorest one.
Formula: SORT(UNIQUE(HSTACK(A1,E1,D1)), 3, -1)
Formula2: SORT(UNIQUE(HSTACK(A2:A4,E2:E4,D2:D4)), 3, -1)
Level: medium
Question: Names of departments by their managers starting dates in chronological order.
Formula: SORT(UNIQUE(HSTACK(A1,E1,D1)), 3, 1)
Formula2: SORT(UNIQUE(HSTACK(A2:A4,E2:E4,D2:D4)), 3, 1)
Level: medium