MAX function
Keep suggested orders at or above zero.
Statistical
Where can you use it?
Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.
Scenario in the workbook
Find the largest amount. Use a lookup or position function to retrieve information from its row.
A worked example from the workbook
| Row | A | B | C |
|---|---|---|---|
| 6 | Region | Status | Amount |
| 7 | North | Paid | 120 |
| 8 | South | Paid | 75 |
| 9 | North | Open | 40 |
| 10 | North | Paid | 80 |
| 11 | South | Open | 0 |
All transactions
=MAX(C7:C11)Expected result120
See the inputs and instructions for all 3 examplesSyntax
MAX(number1, [number2], …)
Copyable formulas
English Excel · en-US
=MAX(0,54-34)Turkish Excel · tr-TR
=MAK(0;54-34)Example and expected result
The target is 54 and the stock position is 34. If the gap is negative, the formula returns 0.
Expected result 20.
Worked examples
Find the largest amount. Use a lookup or position function to retrieve information from its row.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B | C |
|---|---|---|---|
| 6 | Region | Status | Amount |
| 7 | North | Paid | 120 |
| 8 | South | Paid | 75 |
| 9 | North | Open | 40 |
| 10 | North | Paid | 80 |
| 11 | South | Open | 0 |
| Case | Formula | Expected result |
|---|---|---|
| All transactions | =MAX(C7:C11) |
120 |
| Last two transactions | =MAX(C10:C11) |
80 |
| Open North invoice | =MAX(C9) |
40 |