Google Sheets MAX function
Returns the largest number in a set of values.
Syntax
=MAX(value1, [value2, ...])
value1 | The first number, cell or range. |
|---|---|
value2, ... | Optional. More values to compare. |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Test scores
Result: 95
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Score | Submitted | Min score | Grade | |
| 2 | Lily | 88 | TRUE | 0 | F | |
| 3 | Omar | 72 | TRUE | 60 | D | |
| 4 | Priya | 95 | TRUE | 70 | C | |
| 5 | Sam | FALSE | 80 | B | ||
| 6 | Tom | 64 | TRUE | 90 | A | |
| 7 | Uma | 59 | TRUE | |||
| 8 | Vic | 81 | TRUE |
Examples
These use the sample sheet above.
→ 95
The top test score.
→ 36
The spread between the highest and lowest score.
Tips & common mistakes
- To find who got the top score, combine it with INDEX and MATCH: =INDEX(A2:A8, MATCH(MAX(B2:B8), B2:B8, 0)).