Syntax
=MAX(number1, [number2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
number1 | Required | A number, cell or range |
number2 | Optional | More numbers or ranges |
How to use MAX
MAX takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =MAX( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=MAX(3, 9, -2)Result =MAX(A1:A3)Result Data in the sheet
| A | |
|---|---|
| 1 | x |
Related statistical functions
- LINESTFits a straight line (or a plane for several x columns) by least squares and returns its coefficients and optional statistics.
- LOGESTFits an exponential curve y = b * m^x to the data and returns its coefficients and optional statistics.
- LOGNORM.DISTReturns the lognormal distribution of x, where ln(x) is normally distributed.
- LOGNORM.INVReturns the inverse of the cumulative lognormal distribution.
- MAXAReturns the largest value, counting text as 0 and TRUE as 1.
- MAXIFSReturns the largest number among the cells that meet all conditions.
- MEDIANReturns the middle number of the values (the average of the two middle ones for an even count).
- MINReturns the smallest number.
- MINAReturns the smallest value, counting text as 0 and TRUE as 1.