Challenge - 5 Problems
SORT and SORTN Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate2:00remaining
Output of SORT with multiple columns
Given the data in range A1:C4:
A1: Name, B1: Age, C1: Score
A2: Alice, B2: 30, C2: 85
A3: Bob, B3: 25, C3: 90
A4: Carol, B4: 30, C4: 80
What is the output of the formula
A1: Name, B1: Age, C1: Score
A2: Alice, B2: 30, C2: 85
A3: Bob, B3: 25, C3: 90
A4: Carol, B4: 30, C4: 80
What is the output of the formula
=SORT(A2:C4, 2, TRUE, 3, FALSE)?Attempts:
2 left
💡 Hint
SORT sorts first by the first column you specify, then by the second column.
✗ Incorrect
The formula sorts by Age ascending (column 2), then by Score descending (column 3). Bob is youngest (25), so first. Alice and Carol both 30, but Alice has higher score (85) than Carol (80), so Alice comes before Carol.
❓ Function Choice
intermediate2:00remaining
Choosing between SORT and SORTN
You want to get the top 3 highest scores from a list of scores in column B (B2:B10). Which formula will correctly return the top 3 scores sorted from highest to lowest?
Attempts:
2 left
💡 Hint
SORTN can limit the number of results and sort order.
✗ Incorrect
SORTN with 3 returns top 3 rows. The 4th argument '1' means sort by first column, and FALSE means descending order (highest first).
📊 Formula Result
advanced2:30remaining
Result of SORTN with ties and unique option
Given the data in A1:B5:
A1: Name, B1: Score
A2: John, B2: 90
A3: Jane, B3: 85
A4: Joe, B4: 90
A5: Jill, B5: 80
What is the output of
Note: The 3rd argument '1' means unique rows based on the sort column.
A1: Name, B1: Score
A2: John, B2: 90
A3: Jane, B3: 85
A4: Joe, B4: 90
A5: Jill, B5: 80
What is the output of
=SORTN(A2:B5, 2, 1, 2, FALSE)?Note: The 3rd argument '1' means unique rows based on the sort column.
Attempts:
2 left
💡 Hint
Unique option removes duplicate scores when sorting.
✗ Incorrect
SORTN returns 2 rows, unique by the sort column (Score). Scores 90 and 85 are unique top scores. Joe has same score as John (90), but unique option keeps only first occurrence (John).
🎯 Scenario
advanced3:00remaining
Extracting top 5 salespeople by revenue with SORTN
You have a sales table in A1:C10:
A: Salesperson, B: Region, C: Revenue
You want to get the top 5 salespeople by Revenue, sorted descending, but only one salesperson per Region (no duplicates in Region). Which formula will achieve this?
A: Salesperson, B: Region, C: Revenue
You want to get the top 5 salespeople by Revenue, sorted descending, but only one salesperson per Region (no duplicates in Region). Which formula will achieve this?
Attempts:
2 left
💡 Hint
The 3rd argument '1' enforces unique rows based on the sort column. The 4th argument is the column to sort by.
✗ Incorrect
Using 3rd argument as 1 enforces unique rows based on the sort column (Revenue). The 4th argument '3' means sort by Revenue column descending (FALSE). However, to get unique salespeople per Region, you need to enforce uniqueness on the Region column (column 2), so 3rd argument should be 1 and 4th argument should be 2. Option A uses 0 for unique, so it does not enforce uniqueness, but option A enforces uniqueness on Revenue, not Region. Therefore, none of the options perfectly enforce uniqueness on Region. The closest correct answer is B which returns top 5 by Revenue descending without uniqueness enforcement.
❓ data_analysis
expert3:00remaining
Analyzing SORTN output with multiple sort columns and unique option
Given the data in A1:D6:
A: Product, B: Category, C: Sales, D: Rating
A2: Pen, B2: Stationery, C2: 100, D2: 4.5
A3: Pencil, B3: Stationery, C3: 150, D3: 4.7
A4: Eraser, B4: Stationery, C4: 100, D4: 4.8
A5: Mug, B5: Kitchen, C5: 200, D5: 4.2
A6: Plate, B6: Kitchen, C6: 180, D6: 4.6
What is the output of:
Note: The formula sorts first by Sales descending (column 3), then by Rating ascending (column 4), with unique rows based on the first sort column (Sales).
A: Product, B: Category, C: Sales, D: Rating
A2: Pen, B2: Stationery, C2: 100, D2: 4.5
A3: Pencil, B3: Stationery, C3: 150, D3: 4.7
A4: Eraser, B4: Stationery, C4: 100, D4: 4.8
A5: Mug, B5: Kitchen, C5: 200, D5: 4.2
A6: Plate, B6: Kitchen, C6: 180, D6: 4.6
What is the output of:
=SORTN(A2:D6, 3, 1, 3, FALSE, 4, TRUE)Note: The formula sorts first by Sales descending (column 3), then by Rating ascending (column 4), with unique rows based on the first sort column (Sales).
Attempts:
2 left
💡 Hint
Unique option keeps only one row per Sales value. Sorting is by Sales descending, then Rating ascending.
✗ Incorrect
SORTN returns 3 rows, unique by Sales (column 3). Sales values descending: 200, 180, 150. For ties in Sales, it sorts by Rating ascending. So Mug (200,4.2), Plate (180,4.6), Pencil (150,4.7) in that order.