Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
SORTBY is a dynamic array function that returns a sorted copy of an array ordered by the values in a corresponding by-array, without requiring the sort key to be part of the output. It supports multiple sort levels and spills results automatically into adjacent cells.
=SORTBY(A2:B5,B2:B5,-1)=SORTBY(A2:B5,B2:B5,-1)Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Sort my list of students by their exam score from highest to lowest.”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: