MAX(number1, [number2], ...)
=MAX(12,17,25,11,23) // returns 25
=MAX(5,10) // returns 10
Note how MAX can take a values as separate arguments in this example and the last example.
=MAX(A1,A2,A3) // returns the maximum in A1, A2, A3
=MAX(A1:A10) // returns the maximum in the range A1:A10
=MAX(A1:A10,C1:C10) // returns the maximum value in C1:C10 and A1:A10
=MAX(-1,TRUE) // returns 1
MAX returns 1 in this example because MAX does not ignore logical values that are directly provided as arguments.
=MAX(-1,TRUE,"3") // returns 3
In this example, MAX returns 3 because MAX does not ignore numbers in text when directly provided as arguments.
The MAX function returns the largest value from a group of values provided as numbers, names, arrays, or references.