Example 1
Cheapest price for one item
C11 =MINIFS(C2:C9,A2:A9,"Gloves")
Result: 8.60
Three suppliers quote gloves: 8.95, 8.60 and 9.10. The smallest is 8.60.
C11 =MINIFS(C2:C9,A2:A9,"Gloves") returns 8.60
Returns the smallest value in a range among the rows that meet one or more conditions, such as the lowest price for one item.
Syntax
=MINIFS(, , , [criteria_range2, criteria2], ...)
Excel 2019, Excel 2021, Excel 2024, Excel for Microsoft 365 and Excel for the web. Not in the perpetual versions Excel 2016 and earlier.
Try it
Edit the formula in C11 or change the inputs. The sheet recalculates as you type.
C11 =MINIFS(C2:C9,A2:A9,"Gloves") returns 8.60
MINIFS finds the smallest number among the rows that pass your tests. Use it for "cheapest price for this item", "shortest lead time from approved suppliers" or "earliest date for this customer".
The range to take the minimum from comes first, then pairs of test range and condition:
=MINIFS(C2:C9, A2:A9, "Tape", B2:B9, "<>Cobb")
This matches MAXIFS, AVERAGEIFS and COUNTIFS. Every criteria range must be the same size and shape as min_range, or MINIFS returns #VALUE!. All conditions must be true for a row to count.
The min_range can be one of the test ranges. That is how you find the smallest value that is not zero:
=MINIFS(C2:C9, C2:C9, ">0")
This matters because a plain MIN returns 0 whenever 0 stands for "no price" or "no data". With the ">0" condition, MINIFS skips those rows and finds the lowest real value.
If no row meets every condition, MINIFS returns 0, not an error. That is hard to tell from a real zero. If the answer could be confused, test the count first: =IF(COUNTIFS(A2:A9,"Wire")=0,"No rows",MINIFS(C2:C9,A2:A9,"Wire")).
Criteria work as they do in COUNTIF. A plain value matches whole cells and ignores case. Comparisons go in quotes with their operator (">0", "<>Cobb"). Wildcards * and ? work on text. A cell reference reads its current value, and "<"&E2 joins an operator to a cell.
MINIFS is not available before Excel 2019, and shows #NAME? there. In older versions use =MIN(IF(A2:A9="Tape",C2:C9)) confirmed with Ctrl+Shift+Enter, or =AGGREGATE(15,6,C2:C9/(A2:A9="Tape"),1). In Microsoft 365 the MIN(IF(...)) version works as typed.
For the smallest value with no conditions, use MIN. For the second or third smallest, use SMALL.
C2:C9.A2:A9. It must be the same size and shape as min_range.">0", "<>Cobb" or "Tap*". Text and operators go in quotes.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
C11 =MINIFS(C2:C9,A2:A9,"Gloves")
Result: 8.60
Three suppliers quote gloves: 8.95, 8.60 and 9.10. The smallest is 8.60.
C11 =MINIFS(C2:C9,A2:A9,"Gloves") returns 8.60
Example 2
C11 =MINIFS(C2:C9,A2:A9,"Tape",C2:C9,">0")
Result: 2.25
Brill's price of 0 means no quote was given. Without the ">0" condition, the answer would be 0.
C11 =MINIFS(C2:C9,A2:A9,"Tape",C2:C9,">0") returns 2.25
Example 3
C11 =MINIFS(C2:C9,A2:A9,"Tape",B2:B9,"<>Cobb",C2:C9,">0")
Result: 2.40
Excluding Cobb and the zero quote leaves only Apex at 2.40.
C11 =MINIFS(C2:C9,A2:A9,"Tape",B2:B9,"<>Cobb",C2:C9,">0") returns 2.40
Example 4
C11 =MINIFS(C2:C9,A2:A9,"Wire")
Result: 0.00
No row is for Wire, so MINIFS returns 0 instead of an error.
C11 =MINIFS(C2:C9,A2:A9,"Wire") returns 0.00
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In F2, return the lowest price quoted for the item named in E2.
Answer in F2.
">0" condition on the same range to skip them.#VALUE! means the criteria ranges are different sizes from min_range. Make every range start and end on the same rows.#NAME? in Excel 2016 and earlier. Use MIN(IF(...)) or AGGREGATE in files that have to open there.Use `=MINIFS(C2:C9,C2:C9,">0")`. The same range is both the values to minimise and the condition.
No. It arrived in Excel 2019 and Microsoft 365. In older versions use `=MIN(IF(A2:A9="Tape",C2:C9))` confirmed with Ctrl+Shift+Enter.
Either a zero in the data is the smallest matching value, or no row matched. Check spelling and spaces in the criteria, and add `">0"` if zeros mean "no data".
Find the minimum with MINIFS, then look it up: `=XLOOKUP(1,(A2:A9="Tape")*(C2:C9=C11),B2:B9)` in Microsoft 365, where C11 holds the MINIFS result.
MINIFS is taught in Data analysis with formulas, lesson 6: MAXIFS and MINIFS. Each lesson is a short, graded exercise like the one above.