MINIFS Function

Returns the smallest value among cells that meet one or more conditions.

Category

Statistical

Available in

Excel 2019+, Microsoft 365

Returns

A number

Taught hands-on in Level 3: Intermediate Lookups & Data Summaries · Conditional Summaries module

Overview

MINIFS returns the smallest value in one range, looking only at rows where every condition is true.

Criteria can be a value ("North", 50000), a comparison in quotes (">=50000", "<>North"), a comparison joined to a cell (">="&F2), or a pattern with wildcards — * for any characters, ? for one character ("A*", "?d"). Text matching ignores upper/lower case.

Syntax

=MINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Arguments

ArgumentRequired?What it does
min_rangeYesThe cells to find the smallest value in.
criteria_range1YesThe first range to test, the same size as min_range.
criteria1YesThe condition for criteria_range1.
criteria_range2, criteria2, …NoUp to 126 more range/condition pairs.

Examples

Example 1 — Lowest result per region

There's no West rep, so the last one returns 0.

E2fx=MINIFS(C2:C8,B2:B8,"South")
ABCDE
1RepRegionSalesMeasureResult
2AnaNorth62000South39800
3BenSouth48500North50000
4CyNorth50000West0
5DiEast71250
6EdSouth39800
7FayNorth55400
8GusEast48500
=MINIFS(C2:C8,B2:B8,"South") Explain

Example 2 — Smallest non-zero value

Use the value column as its own condition.

=MINIFS(C2:C8,C2:C8,">0") Explain

Common mistakes

  • 0 when nothing matches. If no row meets the conditions, MINIFS returns 0, which can look like a real minimum.
  • #VALUE! min_range and the criteria ranges are different sizes.
  • Comparison without quotes. =COUNTIF(C2:C8,>50000) is an error. Write ">50000" in quotes, or ">"&F2 to use a cell.
  • Putting the cell inside the quotes. ">F2" compares with the text "F2". Join the cell instead: ">"&F2.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.