How to Use the SORTBY Function in Excel
Dynamically reorder your data using one simple formula.

There are many ways to sort data in Microsoft Excel, and one of the simplest and most convenient is the SORTBY function. It lets you dynamically sort your data by more than one array while preserving the integrity of the original data.