Knowledge base / Excel
MIN in Excel: numbers, text, zero, and conditional minima
I explain why text 3 can be ignored, when MIN returns zero without measurements, and how to exclude zeros while retaining negative numbers.

MIN returns the smallest number, but the result alone does not establish that the source contained measurements. I check data types and the meaning of zero before using a minimum. This matters when an imported column mixes numbers, text, and empty cells. The smallest visible digit may not be the smallest number the function actually includes.
Syntax and separators
Microsoft describes MIN as returning the smallest number among the supplied values. It can take a range or several arguments:
=MIN(A2:A7)
=MIN(100, 200, -50, 25, 0)
The second expression returns -50. These examples use English-style commas between arguments and a decimal point. The Polish function name is also MIN, with semicolons used in this entry’s Polish formulas. The separator depends on regional settings, as explained in Microsoft’s guide.
A table with numbers and other types
This is synthetic data. Place it in A2:A7 with a header in A1. The explanation column is descriptive; do not type “empty” into the empty cell.
| Cell | Value or entry method | Meaning |
|---|---|---|
| A2 | 10 | number |
| A3 | 0 | number |
| A4 | -5 | number |
| A5 | '3 |
text 3, forced by the apostrophe |
| A6 | leave empty | no content |
| A7 | =TRUE() |
logical value |
=MIN(A2:A7)
The range contains numeric 10, 0, and -5. The smallest is -5. Text, the empty cell, and the logical value in a reference are ignored, as described in the function documentation. A5 may look like a number, but this example deliberately stores text. Its type determines whether it participates.
I do not change the formula to fix this until I establish what the import should contain. If text 3 represents a valid measurement, the types need correcting. If it is a category code, automatic conversion could change the column’s meaning. Agree the definition first, then correct the data where the problem originates.
Direct arguments differ from references
Logical values and text representations of numbers typed directly into the argument list are included. Compare:
=MIN(10, "3")
=MIN(10, A5)
The first returns 3; the second returns 10, because the text is supplied through a reference. Similarly, =MIN(10, TRUE) gives 1, while =MIN(10, A7) gives 10. These small examples follow Microsoft’s distinction between argument types. A rule for referenced cells should not be transferred to directly entered values.
Directly supplied text that cannot be converted to a number causes an error. An error value in the data can also interrupt the calculation. Ignoring text in a range does not mean every source problem is ignored. I do not add blanket error handling simply to ensure that the report always displays some number.
Zero as a minimum and zero without numbers
In the same table, =MIN(A5:A7) returns 0 because the range contains no numbers. That does not establish that a zero was measured. The MIN documentation explicitly describes this result when there are no numeric values.
If the report needs to distinguish missing measurements, plan a separate presence check. See the COUNT entry. MIN’s output alone cannot establish whether zero came from the data or from a range containing no numbers.

Excluding zeros versus selecting positive values
In Microsoft 365 and Excel 2019 or later, MINIFS finds a minimum with conditions. Its Polish name is MIN.WARUNKÓW. For the numeric part of the table:
=MINIFS(A2:A4, A2:A4, "<>0")
=MINIFS(A2:A4, A2:A4, ">0")
The first excludes zero, keeping 10 and -5, so it returns -5. The second selects only positive values and returns 10. A ">0" criterion removes negative numbers too. I therefore avoid describing it simply as “minimum without zeros” when the data may contain negative values.
The minimum and criteria ranges must have matching sizes and shapes. They should also correspond to the intended observations. No match in MINIFS can return 0, as Microsoft’s example shows, so the number still needs interpretation. First establish whether the group whose minimum you want actually exists.
An exercise before reporting
Change A4 from -5 to 5. MIN across the whole range returns 0 because A3 still holds a numeric zero. The minimum using "<>0" for A2:A4 becomes 5. Then clear A2:A4: ordinary MIN across the whole range returns 0 without any numeric measurements. Explain how that last zero differs from the earlier observed zero before labelling the result “best time” or “lowest value”.
Key takeaways
Does MIN ignore zero?
No. Numeric zero is included. Empty cells in a reference are ignored.
Does MIN always ignore text and logical values?
They are ignored in references. Text representations of numbers and logical values entered directly in the argument list are included.
Does greater than zero only exclude zeros?
No. The >0 condition removes negative numbers too. Use <>0 with MINIFS to exclude zeros alone.
AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.
