SORTBY sorts the elements of a range or array depending on the values in a related range or array.
Syntax :
==SORTBY(array, by_array1, [sort_order1], [by_array2, sort_order2],…)
Parameters :
array –
by array1 –
[sort order1] –
[by array2] –
[sort order2] –
Example :
Sort a table in ascending order by Area, then in decreasing order for each specific personality.
Ask Your Query