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, ...)
Skill: MINIFS Change skill (45)

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, ...)
ArgumentWhat it is
min_rangeThe numbers to search for the smallest value, such as D2:D7.
criteria_range1The column to check, with the same number of rows as min_range.
criteria1What that column must match: text in quotes, a cell, or a comparison.
...More range and criteria pairs.

Examples

Example 1 Smallest order in one region. The North orders are 200, 375 and 50.
F2fx=MINIFS(D2:D7,A2:A7,"North")
ABCDEF
1RegionProductUnitsSalesSmallest North
2NorthWidget420050
3SouthGadget2150
4NorthGadget5375
5EastWidget3150
6NorthWidget150
7SouthWidget6300

=MINIFS(D2:D7,A2:A7,"North") returns 50.

Example 2 With a comparison. The smallest Widget sale among orders of 3 units or more.
F2fx=MINIFS(D2:D7,B2:B7,"Widget",C2:C7,">=3")
ABCDEF
1RegionProductUnitsSalesSmallest big widget
2NorthWidget4200150
3SouthGadget2150
4NorthGadget5375
5EastWidget3150
6NorthWidget150
7SouthWidget6300

=MINIFS(D2:D7,B2:B7,"Widget",C2:C7,">=3") returns 150.

Example 3 The fewest units. The smallest South order by units.
F2fx=MINIFS(C2:C7,A2:A7,"South")
ABCDEF
1RegionProductUnitsSalesFewest South units
2NorthWidget42002
3SouthGadget2150
4NorthGadget5375
5EastWidget3150
6NorthWidget150
7SouthWidget6300

=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.

Practise MINIFS ↑