Get minimum value with criteria
=MINIFS(min_range, range1, criteria1, [range2], [criteria2], ...)
| Parameter | Description |
|---|---|
min_range |
Range of values used to determine minimum. |
range1 |
The first range to evaluate. |
criteria1 |
The criteria to use on range1. |
range2 |
[optional] The second range to evaluate. |
criteria2 |
[optional] The criteria to use on range2. |
The syntax for the MINIFS function depends on the criteria being evaluated. Each condition is provided with a separate range and criteria. The generic
=MINIFS(min_range,range1,criteria1) // 1 condition
=MINIFS(min_range,range1,criteria1,range2,criteria2) // 2 conditions
In the worksheet shown above, the formulas in G5 and G6 are:
=MINIFS(D5:D16,C5:C16,"F") // returns 72
=MINIFS(D5:D16,C5:C16,"M") // returns 64
The formulas in H5:I6 are:
=MINIFS(D5:D16,C5:C16,"F",E5:E16,"A") // returns 72
=MINIFS(D5:D16,C5:C16,"F",E5:E16,"B") // returns 83
=MINIFS(D5:D16,C5:C16,"M",E5:E16,"A") // returns 65
=MINIFS(D5:D16,C5:C16,"M",E5:E16,"B") // returns 64
To return the minimum value in A1:A100 when cells in B1:B100 are greater than 50:
=MINIFS(A1:A100,B1:B100,">50")
To get the minimum value in A1:A100 when cells in B1:B100 are less than or equal to 100, and cells in C1:C100 are greater than zero:
=MINIFS(A1:A100,B1:B100,"<=100",C1:C100,">0")
To construct "not equal to" criteria, use the "" operator surrounded by double quotes (""). For example, to return the minimum value in A1:A100 when
=MINIFS(A1:A100,B1:B100,"<>red")