Sort numbers ascending or descending
The SMALL function is meant to extract the "nth" smallest value from a set of data. The value for N is supplied as the second argument. To get the smallest value with SMALL, supply 1, to get the second smallest value, supply 2, and so on.
In the example shown, "data" is the named range B5:B14. In this example, the main challenge is to increment a value for nth. This is done by using an expanding range inside the ROWS function:
As the formula is copied down the table, the range expands and the number or rows increases, with supplies an incrementing value.
Sort numbers in descending order
To sort numbers in descending order, simply replace the SMALL function with the LARGE function:
Like SMALL, the LARGE function extracts an "nth" value. However, rather than the "nth smallest" LARGE returns the the "nth largest".