Excel function

MAXfunction

Returns the largest number.

All versions
=MAX(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Shrink the range to column A (names only). There are no numbers, so the result is 0. Try breaking it on purpose to see the errors.

Result

95

range
B2:D6Drag the corner dots on the table

The cells to include. Text and blank cells are skipped.

What is the MAX function?

=MAX(number1, [number2], ...)

MAX returns the largest number in a range or list. Text and blank cells are skipped.

If there are no numbers at all, MAX returns 0, not an error.

Arguments

number1
The first number, cell or range.
number2, ...
Optional. More numbers, cells or ranges.

MAX examples

  1. Example 1. Highest score

    =MAX(B2:D6)

    The largest number in the range is 95.

  2. Example 2. Set a floor

    =MAX(0, B2-C2)

    Returns the difference, but never less than 0.

Common mistakes

FAQ

How do I find the 2nd largest value?
Use LARGE(range, 2).