Function · Statistical
Excel MAX function
The Excel MAX function returns the largest number in a set and ignores text. The high bill among four utility months is $143.60.
Syntax =MAX(number1, [number2], ...)
=MAX(B2:B5)Arguments
| Name | Required | What to pass |
|---|---|---|
| number1 | Required | The first number or range. |
| number2 | Optional | More numbers or ranges. Text and blanks are ignored. Zero is a real value. |
Examples
Highest of four utility bills
=MAX(B2:B5)Result $143.60
| A | B | |
|---|---|---|
| 1 | Month | Bill |
| 2 | Jan | 143.60 |
| 3 | Feb | 96.20 |
| 4 | Mar | 118.45 |
| 5 | Apr | 88.10 |
| 6 | Highest | 143.60 |
MAX returns the largest number. On the four utility bills, January’s $143.60 is the high. April’s $88.10 is the low, from MIN. Text and blanks are ignored. Unlike MIN, a range with no numbers at all returns 0, which is easy to publish as if it were a real peak.
A text bill does not raise the maximum and does not warn you. COUNT the range if the high bill looks too small. Negative credits in the same column do not win a MAX unless they are the only numbers. Keep charges and refunds in separate columns if the question is the largest charge.