Complete the formula to sort the range A1:A10 in ascending order.
=SORT(A1:A10, [1], TRUE)The second argument in SORT specifies the column to sort by. Since we have a single column range, use 1.
Complete the formula to sort the range B2:C10 by the second column in descending order.
=SORT(B2:C10, [1], FALSE)The second argument is the column index to sort by within the range. Here, column 2 means the second column of B2:C10.
Fix the error in the formula to sort the range A1:A5 by a custom list order: "High", "Medium", "Low".
=SORTBY(A1:A5, MATCH(A1:A5, [1], 0))
Custom lists in Excel formulas use array constants with curly braces and double quotes for text.
Fill both blanks to sort range B1:B6 by a custom list "Red", "Green", "Blue" and then by values ascending.
=SORTBY(B1:B6, MATCH(B1:B6, [1], 0), [2])
The MATCH function uses a custom list array in curly braces. The third argument of SORTBY is the sort order: 1 for ascending.
Fill all three blanks to create a formula that sorts range A1:A8 by a custom list "Small", "Medium", "Large", then by values descending, and finally by the original order ascending.
=SORTBY(A1:A8, MATCH(A1:A8, [1], 0), [2], SEQUENCE(ROWS(A1:A8)), [3])
The custom list is an array constant in curly braces. The second sort order is -1 for descending. The third sort order is 1 for ascending.