# Excel MAX Function

The Excel MAX function returns the largest numeric value in the data provided. MAX ignores empty cells, the logical values TRUE and FALSE, and text values.

*number1*- Number, reference to numeric value, or range that contains numeric values.*number2*- [optional] Number, reference to numeric value, or range that contains numeric values.

The MAX function returns the largest numeric value in the data provided. The MAX function can be used to return the largest value from any type of numeric data. For example, MAX can return the slowest time in a race, the latest date, the largest percentage, the highest temperature, or the top sales number.

The MAX function takes multiple arguments in the form *number1*, *number2*, *number3*, etc. up to 255 total. Arguments can be a hardcoded constant, a cell reference, or a range, in any combination. MAX ignores empty cells, text values, and the logical values TRUE and FALSE.

### Examples

The MAX function returns the largest numeric value in supplied data:

=MAX(12,17,25,11,23) // returns 25

The MAX function can accept values as separate arguments or in ranges or arrays:

MAX ignores logical values and numbers entered as text, *unless* they are provided as arguments:

To return the maximum value with criteria, use the MAXIFS function. To retrieve the nth largest value in a data set, use the LARGE function. To determine the rank of a number in a set of data, use the RANK function.

### Notes

- Arguments can be provided as numbers, names, arrays, or references.
- MAX accepts up to 255 arguments. If arguments contain no numbers, MAX returns 0.
- MAX ignores empty cells, text values, and TRUE and FALSE in references.
- MAX
*will*evaluate numbers as text and logical values supplied directly as arguments. - To include logical values in a reference, see the MAXA function.

## Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.