MIN
Returns the smallest numeric value from one or more arguments.
MIN scans scalar values and ranges, considering only values that can be treated as numbers.
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
=MIN(number1, [number2], ...)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number1 | number (range) | Required | — |
number2 | number (range) | Optional | — |
Accepts a variable number of arguments. Minimum: 1.
Differences from Excel
Unparseable text supplied directly, such as "x", is ignored by Formualizer. Excel returns #VALUE!.
Remarks
- Errors in any scalar argument or range cell propagate immediately.
- In ranges, non-numeric cells are ignored.
- Scalar text is included only when it can be coerced to a number.
- If no numeric value is found,
MINreturns0.
Examples
Find the smallest numeric value of 4, 8 and 12.
Formula =MIN(4,8,12)
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?.
Pass one three-element array to compute the smallest numeric value.
Formula =MIN({4,8,12})
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?.
The lone number is also the minimum.
Formula =MIN(7)
Expected result 7
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?.
A division error among 4 and 12 prevents computing the smallest numeric value.
Formula =MIN(4,1/0,12)
Expected result #DIV/0!
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?.
Minimum in a numeric range
Formula =MIN(A1:A3)
| A | |
|---|---|
| 1 | 8 |
| 2 | -2 |
| 3 | 5 |
Expected result -2
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?.
Coercible scalar text participates
Formula =MIN(10, "3", 7)
Expected result 3
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?.
Related functions
FAQ
Why can MIN return 0 even when no numbers are present?
If nothing numeric is found after coercion/scan, MIN falls back to 0.
Do errors in referenced ranges get ignored?
No. Any encountered range or scalar error is propagated.