Help Centre › Functions & Formulas
For a full list of available calculation functions, please read What calculation functions are supported.
This article describes the formula syntax and usage of the MAX function.
Description
Returns the largest value in a set of values.
Syntax
MAX(number1, [number2], ...)
The MAX function syntax has the following arguments:
- number1, number2, ... number1 is required, subsequent numbers are optional. 1 to 255 numbers for which you want to find the maximum value.
Remarks
- Arguments can either be numbers or names, arrays, or references that contain numbers.
- Logical values and text representations of numbers that you type directly into the list of arguments are counted.
- If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
- If the arguments contain no numbers, MAX returns 0 (zero).
- Arguments that are error values or text that cannot be translated into numbers cause errors.
Example
| Formula | Description | Result |
| =MAX(10, 20, 30, 40) | Largest value in the list. | 40 |
| =MAX(30, 20, 10, -10) | Largest value in the list. | 30 |
Errors
For a full list of formula errors, please read Formula errors.