Get Your Numbers Right
Returns the k-th smallest number in a cell range, with up to 32,767 significant digits of precision. Same as Excel's built-in SMALL function, but with high precision.
|numlist||Required. The array or range of cells with the numbers to sort.|
|k||Required. The position (from the smallest) in the cell range to return.|
numlist can accept cells with both numbers and text.
numlist can accept cells with text formatted with the local currency symbol and thousands separators, and negatives can be formatted with either a leading hyphen or parentheses.
The return value will be formatted however the chosen input is formatted. To specify number formatting to apply to the return value, xlpSMALL can be formatted by wrapping it in other xlPrecision functions such as xlpADD. See example below.
|The 3rd-smallest number in A1:C5.||30|
|The 3rd-smallest number in A1:C5, formatted with thousands separators by wrapping xlpSMALL in xlpADD (adding the result of xlpSMALL to 0 to get the same result) and specifying thousands separators in xlpADD.||30,000|
|The 5th-smallest number in A1:A17.||1,234,567,890,123,456,789.012345|