MAX Function in Excel: Largest Value in a Range

MAX Function in Excel: Largest Value in a Range featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

StatisticalLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Example 3
  6. Power combo
  7. MAX in practice
  8. Where you will use it
  9. Worked example
  10. Mistakes people make
  11. Related functions
  12. Continue learning

MAX returns the largest number. MIN is its mirror. Both ignore text and blanks.

Advertisement

Syntax

=MAX(number1, [number2], ...)
Argument What it means
number1 Numbers or ranges.

Examples

Example 1

=MAX(D2:D500)

Biggest invoice.

Example 2

=MAX(A2:A500)

Latest date in a list.

Example 3

=MAX(0, B2-C2)

Never below zero β€” a clean way to floor a result.

Power combo

=INDEX(B2:B500, MATCH(MAX(D2:D500), D2:D500, 0))

Returns the customer name of the largest invoice, not just the amount.

MAX in practice

Where you will use it

  • Highest sale of the month
  • Latest date in a list
  • Cap a value: MAX(0, x) to avoid negatives

Worked example

Running highest sale so far.

DaySalesFormulaResult
Mon18500=MAX($B$2:B2)18500
Tue22100=MAX($B$2:B3)22100
Wed19800=MAX($B$2:B4)22100
Thu25600=MAX($B$2:B5)25600

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Text numbers ignoredConvert to numbers
Needing the max with a conditionUse MAXIFS

MIN Β· LARGE Β· MAXIFS Β· INDEX

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Statistics basics22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong