Skip to content

How to find the minimum ignoring zero in Excel and Google Sheets

Excel & Google Sheets
=MINIFS(B2:B6,B2:B6,">0")

Verified example

Computed by a real spreadsheet engine on the sample data below.

ProductUnits
Alpha0
Beta12
Gamma7
Delta0
Epsilon3

=MINIFS(B2:B6,B2:B6,">0")3

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Type =MINIFS( in your result cell.
  2. 2Select the range to find the minimum in, e.g. B2:B6.
  3. 3Add a comma, enter the same range as the criteria range, e.g. B2:B6.
  4. 4Add a comma and the criterion ">0" to exclude zeros.
  5. 5Close the parenthesis and press Enter.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I also ignore blank cells?

MIN and MINIFS both ignore blanks automatically, so you only need to handle zeros explicitly.

What if all values are zero?

MINIFS will return 0 when no cells match the criterion '>0'. Use IFERROR to handle this gracefully.

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: