0
0
Excelspreadsheet~20 mins

Sorting data (single and multi-level) in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sorting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Sorting a list of names alphabetically
You have a list of names in cells A2:A6:

Anna, John, Mike, Zoe, Beth

Which formula in cell B2 will sort these names alphabetically from A to Z?
A=SORT(A2:A6, 0, 1)
B=SORT(A2:A6, 1, -1)
C=SORT(A2:A6, 2, 1)
D=SORT(A2:A6, 1, 1)
Attempts:
2 left
💡 Hint
The SORT function sorts data by column number and order: 1 for ascending, -1 for descending.
📊 Formula Result
intermediate
2:00remaining
Sorting data by date in descending order
You have dates in cells B2:B7:

1/1/2023, 3/15/2023, 2/10/2023, 4/5/2023, 1/20/2023, 3/1/2023

Which formula will sort these dates from newest to oldest?
A=SORT(B2:B7, 1, -1)
B=SORT(B2:B7, 1, 1)
C=SORT(B2:B7, 2, -1)
D=SORT(B2:B7, 0, -1)
Attempts:
2 left
💡 Hint
Descending order means newest dates first.
🎯 Scenario
advanced
3:00remaining
Multi-level sorting of sales data
You have a table with columns:
Product (A2:A10), Region (B2:B10), Sales (C2:C10).

You want to sort the data first by Region (A to Z), then by Sales (largest to smallest).

Which formula will do this correctly?
A=SORT(A2:C10, {2,3}, {-1,1})
B=SORT(A2:C10, {1,3}, {1,-1})
C=SORT(A2:C10, {2,3}, {1,-1})
D=SORT(A2:C10, 2, 1, 3, -1)
Attempts:
2 left
💡 Hint
Use arrays for columns and sort orders in SORT for multi-level sorting.
Function Choice
advanced
3:00remaining
Choosing the right function for multi-level sorting
You want to sort a table by two columns: Date (oldest first) and Amount (largest first).

Which Excel function and syntax will achieve this?
ASORT(data_range, {1,2}, {1,-1})
BSORTBY(data_range, Date_column, 1, Amount_column, -1)
CSORT(data_range, 1, 1, 2, -1)
DSORTBY(data_range, Amount_column, -1, Date_column, 1)
Attempts:
2 left
💡 Hint
SORTBY lets you specify columns and sort orders separately.
data_analysis
expert
3:00remaining
Analyzing sorted data output
You have this data in A1:C5:

| Name | Score | Date |
| Anna | 85 | 1/5/2023 |
| John | 92 | 1/3/2023 |
| Mike | 85 | 1/4/2023 |
| Zoe | 92 | 1/2/2023 |

You apply this formula:
=SORT(A2:C5, {2,3}, {-1,1})

What is the order of names in the sorted output?
Excel
=SORT(A2:C5, {2,3}, {-1,1})
AZoe, John, Mike, Anna
BJohn, Zoe, Anna, Mike
CJohn, Zoe, Mike, Anna
DZoe, John, Anna, Mike
Attempts:
2 left
💡 Hint
Sort by Score descending, then Date ascending.