Free MINIFS practice
MINIFS practice exercises
MINIFS returns the smallest value among the rows that meet one or more conditions. 5 reps, from easy to hard, each checked in a real spreadsheet engine. 2 free, 3 with Pro.
=MINIFS(min_range, criteria_range1, criteria1, ...)
MINIFS guide
How to use MINIFS in Excel
MINIFS returns the smallest number in a column among the rows that meet your conditions: the smallest South order, the fastest time in one group. It's MIN with a filter in front, and the mirror of MAXIFS.
It is available in Excel 2019 and later. When no row matches, it returns 0 rather than an error.
Syntax
=MINIFS(min_range, criteria_range1, criteria1, ...)
| Argument | What it is |
|---|---|
min_range | The numbers to search for the smallest value, such as D2:D7. |
criteria_range1 | The column to check, with the same number of rows as min_range. |
criteria1 | What that column must match: text in quotes, a cell, or a comparison. |
... | More range and criteria pairs. |
Examples
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Sales | Smallest North | |
| 2 | North | Widget | 4 | 200 | 50 | |
| 3 | South | Gadget | 2 | 150 | ||
| 4 | North | Gadget | 5 | 375 | ||
| 5 | East | Widget | 3 | 150 | ||
| 6 | North | Widget | 1 | 50 | ||
| 7 | South | Widget | 6 | 300 |
=MINIFS(D2:D7,A2:A7,"North") returns 50.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Sales | Smallest big widget | |
| 2 | North | Widget | 4 | 200 | 150 | |
| 3 | South | Gadget | 2 | 150 | ||
| 4 | North | Gadget | 5 | 375 | ||
| 5 | East | Widget | 3 | 150 | ||
| 6 | North | Widget | 1 | 50 | ||
| 7 | South | Widget | 6 | 300 |
=MINIFS(D2:D7,B2:B7,"Widget",C2:C7,">=3") returns 150.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Sales | Fewest South units | |
| 2 | North | Widget | 4 | 200 | 2 | |
| 3 | South | Gadget | 2 | 150 | ||
| 4 | North | Gadget | 5 | 375 | ||
| 5 | East | Widget | 3 | 150 | ||
| 6 | North | Widget | 1 | 50 | ||
| 7 | South | Widget | 6 | 300 |
=MINIFS(C2:C7,A2:A7,"South") returns 2.
Common mistakes
Using MIN when there is a condition
MIN looks at every row. The smallest South sale is 150, not the 50 from a North order.
Wrong=MIN(D2:D7) → 50
Right=MINIFS(D2:D7,A2:A7,"South") → 150
Checking the wrong column
South is a region, but this checks the Product column, so nothing matches and MINIFS returns 0, which looks like a real answer.
Wrong=MINIFS(D2:D7,B2:B7,"South") → 0
Right=MINIFS(D2:D7,A2:A7,"South") → 150
MINIFS questions
Which Excel versions have MINIFS?
Excel 2019, 2021, 2024, Microsoft 365 and Excel on the web.
Why does MINIFS return 0?
Either nothing matched your conditions or the smallest matching value really is 0. Count the matches with COUNTIFS to tell which.
Does MINIFS ignore blank cells?
Yes. Empty cells in the min range are skipped, so they never count as 0.
Related functions
Reading is the warm-up
The reps are what make it stick. Try MINIFS in the practice sheet above.