Function · Statistical
Excel MINIFS function
The Excel MINIFS function returns the smallest number whose row passes every test. The smaller Austin Electric bill, of $143.60 and $118.45, is $118.45. No match returns 0.
Syntax =MINIFS(min_range, criteria_range1, criteria1, ...)
=MINIFS(C2:C5,A2:A5,"Austin",B2:B5,"Electric")Arguments
| Name | Required | What to pass |
|---|---|---|
| min_range | Required | The numbers to compare. This argument comes first, as it does in SUMIFS and AVERAGEIFS. |
| criteria_range1 | Required | The first range to test. It must be the same shape as min_range. |
| criteria1 | Required | The test for that range. Text matches ignore case. |
| criteria_range2 | Optional | More pairs. A row has to pass every test. |
Examples
The lower Austin Electric bill
=MINIFS(C2:C5,A2:A5,"Austin",B2:B5,"Electric")Result $118.45
| A | B | C | |
|---|---|---|---|
| 1 | City | Category | Amount |
| 2 | Austin | Electric | 143.60 |
| 3 | Dallas | Electric | 110.00 |
| 4 | Austin | Gas | 96.20 |
| 5 | Austin | Electric | 118.45 |
| 6 | 118.45 |
MINIFS returns the smallest number among rows that pass every test. Austin and Electric together are $143.60 and $118.45, so the minimum is $118.45. Dallas Electric fails the city. Austin Gas fails the category. The average of those same two bills, on the AVERAGEIFS page, is $131.025. MAXIFS of them is $143.60.
The numbers come first, then each range and its test. A miss is 0, not #N/A and not #DIV/0!. A month that has not happened, with no matching row, looks like a bill of zero. COUNTIFS of the same tests tells you whether any row qualified. Excel 2016 does not have MINIFS. MIN of a filtered copy of the column is the older approach, and it is easy to point at the wrong rows.