Formualizer Docs

SMALL

Returns the k-th smallest value in a data set.

SMALL is often used to find low outliers, minimum thresholds, or bottom-N values.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=SMALL(array, k)

Arguments

ArgumentTypeRequiredDefault
arraynumber (range)Required—
knumber (range)Required—

Remarks

  • k must be at least 1.
  • Non-numeric values in referenced ranges are ignored.

Error cases

  • Returns #NUM! if k is greater than the count of numeric values.

Examples

Select the second value from the requested end of an unsorted data set.

Formula =SMALL({10,30,20,40},2)

Expected result 20

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Move one position farther into the ordering.

Formula =SMALL({10,30,20,40},3)

Expected result 30

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Select the last valid rank in the four-value array.

Formula =SMALL({10,30,20,40},4)

Expected result 40

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Rank five is outside the size of the source array.

Formula =SMALL({10,30,20,40},5)

Expected result #NUM!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Second-smallest from direct values

Formula =SMALL({4,9,1,7},2)

Expected result 4

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Third-smallest from a range

Formula =SMALL(A1:A4,3)

Input cells
A
13
212
38
45

Expected result 8

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Does SMALL include text in referenced ranges?

No. Non-numeric range values are ignored when selecting the k-th smallest value.

Implementation

Engine source

On this page