Return the largest value in a range of values
MAX(number1, [number2], ...)
MAX will assess up to 255 numbers to determine the largest, including individual values (1,2,3), cell references (A1,A2,A3), ranges (A1:A3) or a mix of all three.
All numbers including negative values, percentages, dates, fractions, and times are assessed. Non-numeric values (e.g. text, TRUE/FALSE and empty cells) are ignored by the MAX function.
If the arguments contain no numbers, MAX returns zero. Error values cause errors.
MAX examples.
In the examples below, the MAX function is used to identify the largest population or GDP per capita values or even (using an array formula) the largest number of characters in a selection of text strings.
Use the MAX function to return the largest value in a range of values.

Syntax
=MAX(number1, [number2], ...)
The MAX function consists of up to 255 arguments:
- number1. Required. The first number to assess.
- number2. Optional. The second number to assess.
- .... Optional. Additional numbers (up to 255) to assess.
Try it now!
- Enter your formulas into the grey cells.
Scope
MAX can be applied to cell references, ranges, named ranges, tables, constants and arrays.
|
=MAX(C3,C5,C7) |
|
=MAX(C3:C7) |
|
=MAX(myNamedRange) |
|
=MAX(Table1[ColumnName]) |
|
=MAX(number1,number2,number3,...) |
Caveats
The MAX function:
- can handle up to 255 individual arguments.
- will assess all numbers including negative values, percentages, dates, fractions, and times.
- will ignore text values, empty cells and TRUE and FALSE values.
- will trigger an error if the arguments contain errors.
- will return zero if the arguments contain no numbers.
- will automatically update if rows or columns within the range referenced in the formula are deleted. This prevents a #REF! error.
- will update to include added rows or columns (assuming they are within the range referenced in the formula).
Related Functions
- MIN: return the smallest value in a range of values.
- LARGE: returns the k-th largest value in a data set.
- SMALL: returns the k-th smallest value in a data set
Functions Category