Sorts a given array or range of values based on a corresponding array or range, and the specified criteria. It is a dynamic array function, where the result array may increase or decrease in size based on the source range.
Syntax
range: The range containing the array of values to sort. Eg., A2:B11
by_range: The range containing the array of values to sort the range by. Eg., D2:D11
order: Indicates the order in which the range should be sorted.
If 1, the range is sorted in ascending order
Examples
|
Formula |
|
=SORTBY(A2:B11;D2:D11;-1) |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions