Max() |
Working with Formulas > Functions Used in Formulas > List Functions > Max()
MAX() returns the maximum value in the specified list. The input values may be any valid type except Boolean, provided they are all of compatible types, such as the numeric, double and integer types.
Function Format
MAX(value1 [, value2, value3, ...])
Return Value
MAX() returns a value that is compatible with the type of the input values
Examples
MAX(3, 1, 4, 2) = 4
MAX(-3, 1, -4, 2) = 2
MAX(3, 1, MAX(2, 5), 2) = 5
MAX("B", "D", "A", "C") = "D"
MAX(DATE(2007, 12, 25), DATE(2007, 1, 1)) = the date, January 1, 2007 |