MAX Function

Excel Functions › Statistical

All versions Statistical

The Excel MAX function returns the largest number in a set of values, references, or ranges — one of Excel's most-used functions for finding peaks, ceilings, and top values.


Quick answer:
=MAX({3,5,1,8,2}) largest value = 8

Syntax

=MAX(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first number, cell reference, or range to evaluate.
number2, ...OptionalUp to 254 additional numbers or ranges. Text, logical values, and empty cells in a range are ignored.

How to use it

MAX scans every argument and returns the single highest number. You can mix literals, cells, and whole ranges in one call.

=MAX({3,5,1,8,2}) // = 8
=MAX(A1:A10) // highest value in the range
=MAX(0, A1-B1) // floor a result at zero

Inside a referenced range, text and logical values are ignored — if you need TRUE to count as 1 and text as 0, use MAXA instead. A common trick is =MAX(0, value) to clamp a number so it never goes negative.

Conditional max: to find the largest value that meets criteria, use MAXIFS (Excel 2019+), e.g. =MAXIFS(sales, region, "West").

Try it: interactive demo

Live demo

Pick a MAX example to see the formula and its result.

Result:

Practice workbook

📊
Download the free MAX practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Does MAX ignore text and blank cells?
Yes — when pointed at a range, MAX skips text, logical values, and empty cells, returning the largest number. To make logicals and text count, use MAXA.
How do I find the maximum based on a condition?
Use MAXIFS (Excel 2019+): =MAXIFS(values, criteria_range, criteria). In older versions use an array formula like =MAX(IF(...)) entered with Ctrl+Shift+Enter.
What is the difference between MAX and LARGE?
MAX returns only the single highest value. LARGE(range,k) returns the k-th largest, so LARGE(range,1) equals MAX but you can also get the 2nd, 3rd, etc.
What does MAX return if there are no numbers?
If none of the arguments contain a number (e.g. only text or blanks), MAX returns 0.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: MIN · MAXA · LARGE · MAXIFS · SMALL