SpreadJS Documentation > Formula Reference > Formula Functions > LARGE |
This function returns the nth largest value in a data set, where n is specified.
LARGE(array,n)
This function has these arguments:
Argument | Description |
---|---|
array | Array from which to return the nth largest value |
n | The position (from the largest value) for which to return the value (for example, 5 to return the fifth largest value). Must be equal to or less than the number of items in the array. |
Use this function to select a value based on its relative standing. For example, you can use it to return the third-place score in a competition.
Accepts array and numeric data for all arguments. Returns numeric data.
LARGE(F1:F8,2)
LARGE(R1C6:R8C6,5)
LARGE({35,31,47,51,37,31,58,39},3) gives the result 47.0000000000