MAX Function
Returns the largest number.
Category
Statistical
Available in
All versions, Microsoft 365
Returns
A number
Overview
MAX returns the largest number in a list of values or ranges. In a range, text, TRUE/FALSE and empty cells are ignored.
Use LARGE for the 2nd or 3rd largest, and MAXIFS for the largest that meets a condition.
Syntax
=MAX(number1, [number2], …)
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number1 | Yes | A number, cell or range. |
| number2, … | No | Up to 255 more numbers, cells or ranges. |
Examples
Example 1 — Best sales result
The highest value in the Sales column.
E2fx=MAX(C2:C8)
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Rep | Region | Sales | Measure | Result |
| 2 | Ana | North | 62000 | Highest | 71250 |
| 3 | Ben | South | 48500 | ||
| 4 | Cy | North | 50000 | ||
| 5 | Di | East | 71250 | ||
| 6 | Ed | South | 39800 | ||
| 7 | Fay | North | 55400 | ||
| 8 | Gus | East | 48500 |
=MAX(C2:C8) Explain
Example 2 — Cap a value
MAX with a floor stops results going below zero.
=MAX(0,B2-C2) Explain
Returns the shortfall, or 0 if there isn't one.
Common mistakes
- 0 when there are no numbers. MAX of a range with only text or blanks returns 0, not an error.
Notes

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.