SMALL Function (Gnumeric)
Find ranked low values in Gnumeric with SMALL, duplicate ranks, ignored text/booleans and error propagation.
Verification status: Fresh Gnumeric 1.12.57 source and bounded native engine checks; no GUI. How formula examples are checked
Exact syntax
=SMALL(data,k)
SMALL returns the k-th smallest numeric value in a data set. Both data and k are required. Use a positive integer rank k no larger than the count of numeric values. K=1 selects the minimum. This is an order statistic, not the k-th smallest distinct value: duplicate numbers occupy separate positions.
The preserved five-row table below returns 20 for rank 2. To examine duplicates and mixed types, put 3,1,1,5 in E1:E4, the text “2” in E5, TRUE in E6 and leave E7 blank. The numeric multiset sorts as 1,1,3,5. =SMALL(E1:E7,2) returns 1 and rank 3 returns 3. The numeric-looking text, boolean and blank are ignored for this range collection.
Advanced application: list several lowest observations
Put integer ranks 1,2,3 in J1:J3, then use =SMALL($B$1:$B$5,J1) in K1 and fill down. For the original data this would list 10,20,30. This derived worksheet application follows directly from sorted order; only the literal fixture ranks below were natively executed. Lock the data range before filling so that each rank refers to the same population.
Repeated values remain repeated in the output. If distinct values are required, deduplicate according to the application’s rule first; SMALL itself does not decide whether two records with equal amounts represent the same item. It also returns the amount rather than the associated row label. A separate record-selection rule is needed if multiple records tie.
Invalid rank and source errors
In the mixed-data range, rank 5 returns #NUM! because there are only four numeric observations, even though seven cells are selected. Rank zero returns #NUM!, and an entirely blank range also returns #NUM!. Validate integer ranks rather than relying on undocumented fractional-rank assumptions in a transferred workbook.
Errors in the data are not treated as blank cells. With 1 in G1 and =NA() in G2, =SMALL(G1:G2,1) returns #N/A. Clean or explicitly handle source errors before ranking when that is appropriate; silently suppressing them could change which observations belong in the population. Dates are stored numerically, so decide whether date serials are legitimate members of a mixed data set before applying a numeric rank function.
Worked example
Use this small practice sheet for the ranges referenced in the formula:
| Row | A (Quantity) | B (Amount) | C (Category) |
|---|---|---|---|
| 1 | 1 | 10 | apple |
| 2 | 2 | 20 | pear |
| 3 | 3 | 30 | apple |
| 4 | 4 | 40 | pear |
| 5 | 5 | 50 | apple |
=SMALL(B1:B5,2)
Expected result: 20.
Why it works: Find the second-smallest amount in the sample list. The specified sample table supplies the referenced cells.
Recorded native results
=SMALL(B1:B5,2)→ 20=SMALL(E1:E7,2)→ 1=SMALL(E1:E7,3)→ 3=SMALL(E1:E7,5)→ #NUM!=SMALL(E1:E7,0)→ #NUM!=SMALL(I1:I3,1)→ #NUM!=SMALL(G1:G2,1)→ #N/A
Availability, portability and verification
Original introduction and last functioning release are not established. The retained historical check documented Gnumeric 1.12.62 registration on 14 October 2026, for desktop installations with the fn-stat module included and enabled. This is separate from the fresh official 1.12.57 source inspection and bounded ssconvert execution on 17 October 2026. No execution of 1.12.62 is claimed.
Every saved input formula and output cell was independently read back; results match explicit code-point, table-lookup, Roman-notation or sorted-multiset expectations exactly. Source and native evidence hashes were verified. This is engine evidence, not GUI verification. The earlier comparable LibreOffice Calc 25.2 test is historical context; it does not establish identical coercion or extensions across programs. Check receiving applications and locales before transferring formulas.