To find the biggest value in a given month — the largest February order, the peak daily total per month — combine MAXIFS with two date boundaries, the same trick used for summing by month.
The example
Dated orders. We want the biggest February order.
| A | B | D | E | ||
|---|---|---|---|---|---|
| 1 | Date | Amount | Month | Max | |
| 2 | 1/05 | $120 | Feb 1 | $200 | |
| 3 | 2/03 | $200 | |||
| 4 | 2/21 | $150 | |||
| 5 | 3/10 | $300 |
The formula
The largest February order — March’s $300 is excluded:
How it works
Same month-fencing as Sum by Month, but taking the max:
A2:A5, ">="&E2keeps rows on or after the 1st of the month.A2:A5, "<="&EOMONTH(E2,0)keeps rows on or before the month-end.- MAXIFS returns the largest
Bvalue among the rows that pass both —$200for February. - Swap MAXIFS for MINIFS to get the smallest value in the month.
Try it: interactive demo
Pick a month; see its largest order.
Variations
Smallest in the month
MINIFS, same boundaries:
Max by month AND category
Add another condition pair:
Legacy array version
Pre-2019, Ctrl+Shift+Enter:
Pitfalls & errors
MAXIFS needs Excel 2019+. Older versions show #NAME? — use the array MAX(IF()) version.
Don’t match the month number alone. MONTH()=2 would include February of every year. The first-of-month / EOMONTH pair is year-safe.
Returns 0 for an empty month. If no orders fall in the month, MAXIFS gives 0, not an error.
Practice workbook
Frequently asked questions
How do I find the maximum value in a specific month in Excel?
How do I get the smallest value by month instead?
How do I do max-by-month in Excel 2016?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class