# MAX

## Content

This function returns the maximum value, the greatest value, of all the values in the arguments.

## Syntax

`MAX(number1, [number2], ...)`

## Arguments

<span data-teams="true" style="margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; box-sizing: border-box;">This function has these arguments:</span>

| <span data-teams="true" style="margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; box-sizing: border-box;">Argument</span> | <span data-teams="true" style="margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; box-sizing: border-box;">Description</span> |
| -------- | ----------- |
| *number1, number2, ...* | <span data-teams="true" style="margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; box-sizing: border-box;"> </span>Number1 is required, subsequent numbers are optional. 1 to 255 numbers for which you want to find the maximum value. |

## Remarks

If an array or reference argument contains text, logical values, or empty cells, the function ignores those values; however, the function includes in calculations cells with the value zero.
This function differs from MAXA, which allows text and logical values as well as numeric values.

## Examples

`MAX(A1,B2,C3,D4,E5)`
`MAX(A1:A9)`
`MAX(R1C2:R1C15,R2C2:R2C15)`
`MAX(2,15,12,3,7,19,4)` gives the result 19