Which product sold the most? Which day was busiest? Combine MAX with INDEX/MATCH to return the label of the largest value, not just the value itself.
The example
The top-selling product by value.
| A | B | |
|---|---|---|
| 1 | Product | Sales |
| 2 | Gizmo | 5,100 (max) |
| 3 | Widget | 4,200 |
The formula
Return the label of the maximum:
How it works
MAX picks the value; INDEX/MATCH returns its label:
MAX(values)finds the largest number.MATCH(max, values, 0)finds the row where it appears.INDEX(labels, thatRow)returns the matching label.- Use MIN instead of MAX for the smallest; add criteria with MAXIFS/array IF for “highest in a group.”
Highest within a group? Use MAXIFS for the value, then an INDEX/MATCH on two keys (group + value) for the label. In 365, sort and TAKE(SORTBY(labels, values, -1), 1) returns the top label cleanly.
Try it: interactive demo
Lines “name,value”; find the top.
Variations
Lowest instead
Swap MAX for MIN:
Highest in a group
With MAXIFS:
365 sort + take
Top label:
Pitfalls & errors
Ties return the first. If two items share the max, MATCH returns the earlier one. Add a tiebreaker if it matters.
Align the ranges. The labels and values ranges must cover the same rows.
MAX ignores text. Non-numeric cells are skipped — fine, but make sure your value column is numeric.
Practice workbook
Frequently asked questions
How do I find the name of the highest value in Excel?
How do I find the item with the lowest value?
How do I find the top item within a group?
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