What is the MINIFS function?
=MINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)MINIFS returns the smallest value among rows that meet every condition, such as the smallest apple quantity outside Daegu.
It compares the matching values one by one and remembers the smallest so far. One condition is enough.
MINIFS is available in Office 2019 and later and in Microsoft 365. It is not in Excel 2016.
Arguments
- min_range
- The cells to find the smallest value in. The first argument.
- criteria_range1, criteria1
- The range for the first condition and the condition.
- criteria_range2, criteria2, ...
- Optional. Every criteria range must be the same size as min_range, or you get #VALUE!.
MINIFS examples
Example 1. Smallest apple quantity outside Daegu
=MINIFS(C2:C9, B2:B9, "Apple", A2:A9, "<>Daegu")Daegu is left out; the smaller of 30 and 25 is 25. This is how the sheet first opens.
Example 2. Lowest Busan sales
=MINIFS(D2:D9, A2:A9, "Busan")Of 28800, 67500 and 37500, the smallest is 28800.
Example 3. Wildcard: products ending in "ead"
=MINIFS(D2:D9, B2:B9, "*ead")The two bread rows have 25600 and 57600; the smaller is 25600.
Common mistakes
Ranges of different sizes
If min_range and a criteria range have different cell counts, you get #VALUE!. Drag a range handle up to check.
Trusting a 0 result
If nothing matches, the result is 0, not an error, so it can't be told apart from a real 0. Check with COUNTIFS.
Expecting blanks to count as 0
Cells in min_range that are not numbers are left out, so a blank does not make the minimum 0.
FAQ
- Is there a MINIF?
- No. Use MINIFS even with one condition.
- Smallest value above 0?
- Add a ">0" condition on the same range: =MINIFS(C2:C9, C2:C9, ">0").
- Largest value?
- Use MAXIFS the same way.