Explanation

TheSORTBY functioncan sort values in a range with anarraythat doesn’t exist on the worksheet.

Use a positive 1 to sort in ascending order.

The range or array used to sort does not need to appear in results.

Excel formula: Sort by one column

LEN will also count characters in numbers, but number formatting is not included.

Excel formula: Sort by two columns

Excel formula: Random sort

Excel formula: Sort by custom list

Excel SORTBY function

Excel LEN function