Excel MAXIFS function📊 Largest with a condition
The MAXIFS function: Largest with a condition. Best day for each branch. This page shows the syntax, a worked example with its result and how the formula reads.
What does MAXIFS do?
Largest with a condition. Best day for each branch
MAXIFS syntax
=MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
MAXIFS example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell B6 Yellow cells = result
| A | B | |
|---|---|---|
| 1 | Branch | Sales |
| 2 | Bangna | 500 |
| 3 | Silom | 300 |
| 4 | Bangna | 200 |
| 5 | Silom | 400 |
| 6 | Bangna best | 500 |
How it reads: Largest B value where branch is Bangna
Frequently asked questions about MAXIFS
What does MAXIFS do?
Largest with a condition. Best day for each branch
What does the MAXIFS example return?
The example formula in cell B6 gives 500.
Which Excel versions have MAXIFS?
Excel for Microsoft 365 and Excel 2019 or later, according to Microsoft's function list. Older versions show #NAME?.
🕸️ More stats and ranking formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning