Statistical
All versions
◉ 52 views
=MAX()
Returns the largest value in a set of values.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=MAX(number1, [number2], ...)
Hover argument names in the table for details.
Output typeNumber
Popularity90 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =MAX() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
number1 |
Number | Required | , number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 numbers for which you want to find the maximum value. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
10 |
A3 |
7 |
A4 |
9 |
A5 |
27 |
A6 |
2 |
A7 |
10 |
A8 |
7 |
A9 |
9 |
A10 |
27 |
A11 |
2 |
Largest value in the range A2:A6.
=MAX(A2:A6)
Result:
27
Largest value in the range A2:A6 and the value 30.
=MAX(A2:A6, 30)
Result:
30
§ Remarks
- Arguments can either be numbers or names, arrays, or references that contain numbers.
- Logical values and text representations of numbers that you type directly into the list of arguments are counted.
- If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
- If the arguments contain no numbers, MAX returns 0 (zero).
- Arguments that are error values or text that cannot be translated into numbers cause errors.
- If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the MAXA function.
✦ Tips
- Arguments can either be numbers or names, arrays, or references that contain numbers.
- Logical values and text representations of numbers that you type directly into the list of arguments are counted.
- If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
- If the arguments contain no numbers, MAX returns 0 (zero).
- Arguments that are error values or text that cannot be translated into numbers cause errors.
- If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the MAXA function.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!