MAX Function

Returns the largest number.

Category

Statistical

Available in

All versions, Microsoft 365

Returns

A number

Taught hands-on in Level 2: Essential Formulas & Everyday Logic - Frequently Used Functions module

Overview

MAX returns the largest number in a list of values or ranges. In a range, text, TRUE/FALSE and empty cells are ignored.

Use LARGE for the 2nd or 3rd largest, and MAXIFS for the largest that meets a condition.

Syntax

=MAX(number1, [number2], …)

Arguments

ArgumentRequired?What it does
number1YesA number, cell or range.
number2, …NoUp to 255 more numbers, cells or ranges.

Examples

Example 1 — Best sales result

The highest value in the Sales column.

E2fx=MAX(C2:C8)
ABCDE
1RepRegionSalesMeasureResult
2AnaNorth62000Highest71250
3BenSouth48500
4CyNorth50000
5DiEast71250
6EdSouth39800
7FayNorth55400
8GusEast48500
=MAX(C2:C8) Explain

Example 2 — Cap a value

MAX with a floor stops results going below zero.

=MAX(0,B2-C2) Explain

Returns the shortfall, or 0 if there isn't one.

Common mistakes

  • 0 when there are no numbers. MAX of a range with only text or blanks returns 0, not an error.

Notes

  • MAX also works on dates — it returns the latest date.
  • Related functions: MIN, LARGE, MAXIFS, MAXA.
Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.