Maximum value

=MAX(range)
To get the maximum value from a set of numbers, use the MAX function. In the example shown, the formula in cell I6, copied down, is:
=MAX(C6:G6)
The MAX function accepts one or more arguments, which can be a mix of constants, cell references, and ranges. MAX then returns the maximum value in the data provided. Text values and empty cells are ignored.
In this example, each student has five test scores in the same row, and the goal is to get the maximum score for each student. Data is supplied to MAX in a single range. The formula in I6 is:
=MAX(C6:G6)
As the formula is copied down the table, MAX returns the top score for each student. MAX is fully automatic. If any scores are changed, MAX will automatically recalculate to show the latest.
Other options
To calculate a max value with conditions, see the MAXIFS function. To get the nth largest value in a set of data, see the LARGE function.
Download 100+ Important Excel Functions
Get over 100 Excel Functions you should know in one handy PDF.