1. Home
  2. Functions
  3. Statistical
  4. MAX

MAX function

Returns the largest number.

Syntax

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

Arguments

ArgumentRequiredDescription
number1RequiredA number, cell or range
number2OptionalMore 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 9
=MAX(A1:A3)Result 0
Data in the sheet
A
1x

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.