MAXIFS finds the highest value where conditions are met. MINIFS finds the lowest. Use them for conditional top/bottom analysis without filtering.
MAXIFS returns the maximum value from a range where one or more conditions are all true. MINIFS returns the minimum. They are the conditional equivalents of MAX and MIN — letting you find the best or worst result within a specific subset of your data without filtering or sorting.
=MAXIFS(max_range, criteria_range1, criteria1, ...)| Argument | Description |
|---|---|
| =MAXIFS(max_range, criteria_range1, criteria1, ...) | |
| max_range required | The range to find the maximum from. |
| criteria_range1 required | The column to check the first condition against. |
| criteria1 required | The first condition to match. All conditions must be true. |
=MAXIFS(C2:C100, B2:B100, "North")Finds the largest sale where the region is North.
=MINIFS(D2:D100, A2:A100, "Category A")Finds the lowest value in Category A.
=MAXIFS(C2:C100, B2:B100, "North", C2:C100, ">1000")Highest North sale that also exceeds 1000.
=MAXIFS(A2:A100, B2:B100, "Active")Finds the latest date where status is Active.
=MAXIFS(C:C, B:B, E1)E1 contains the region to search. Change E1 for a different result.
Before MAXIFS existed (it arrived in Excel 2019), finding the conditional maximum required an array formula: =MAX(IF(B2:B100="North",C2:C100)) entered with Ctrl+Shift+Enter. MAXIFS replaces this with a cleaner, non-array formula that is easier to read and faster to calculate on large datasets.
A common use in sales analysis: find the highest individual sale for each region. Put each region name in column E, then in F2: =MAXIFS($C$2:$C$100,$B$2:$B$100,E2). Copy down to get the top sale for every region in one set of formulas — no filtering, no sorting, no manual checking.
MINIFS follows the same logic but finds the minimum. Together they give you the full range for each group. Combined with AVERAGEIFS you get mean, max and min for every category in seconds.
If no rows match your criteria, MAXIFS returns 0 — not an error. Check for this in your results: =IF(MAXIFS(...)=0,"No data",MAXIFS(...)) to distinguish a genuine zero result from a no-match situation.
ExcelPro has exercises covering this formula across multiple tracks. Free to start.
Try exercises →