Excel MAX function: how to find the largest value
Find the top sales and the latest date with MAX in Excel: MAXIFS with conditions, a TOP-3 with LARGE, and MAX(0,…) to get rid of negative results.
MAX returns the largest of the numbers you give it. The best seller of the month, the record sales day, the top score, the most expensive order — one formula finds them.
Dates are numbers too, so MAX gives you the latest date: a customer’s last payment, the last delivery. Another powerful trick is MAX(0, …): if a difference comes out negative, it is replaced with zero. We’ll see all of this in examples.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Seller | Monthly sales | ||
| 2 | Aziz | 18 400 000 | ||
| 3 | Dilnoza | 23 750 000 | ||
| 4 | Javohir | 15 900 000 | ||
| 5 | Malika | 21 300 000 | ||
| 6 | Sardor | 19 600 000 | ||
| 7 | Record | 23 750 000 | ||
| 8 |
=МАКС(B2:B6) found the month’s top sales: 23,750,000 soums (Dilnoza)Syntax
=МАКС(number1; [number2]; ...)
- number1 — required: a number, a cell or a range (
B2:B6). - number2, ... — optional: up to 254 more numbers, cells or ranges, separated by commas. For example,
=МАКС(B2:B6;10000000)never returns less than 10 million.
Blank cells, text and TRUE/FALSE in a range are ignored. No numbers — the result is 0. If all numbers are negative, MAX returns the one closest to zero (−3 out of −3 and −8).
Example
Formula:
=MAX(B2:B4)→ result: 36 — the hottest day of the week
Entering MAX
1
Select the result cell (B7). On the Формулы tab click the arrow under Автосумма and choose Max (the same menu is on the Главная tab).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Seller | Monthly sales | ||
| 2 | Aziz | 18 400 000 | ||
| 3 | Dilnoza | 23 750 000 | ||
| 4 | Javohir | 15 900 000 | ||
| 5 | Malika | 21 300 000 | ||
| 6 | Sardor | 19 600 000 | ||
| 7 | Record | 1 | ||
| 8 |
2
Excel suggests a range. Make sure the header or a “Total” row isn’t inside the border, then press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Seller | Monthly sales | ||
| 2 | Aziz | 18 400 000 | ||
| 3 | Dilnoza | 23 750 000 | ||
| 4 | Javohir | 15 900 000 | ||
| 5 | Malika | 21 300 000 | ||
| 6 | Sardor | 19 600 000 | ||
| 7 | Record | 23 750 0002 | ||
| 8 |
3
By typing: type =МАКС(, select the range with the mouse and press Enter. In a long column Ctrl + Shift + ↓ selects down to the last row instantly.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Payment date | Amount | |
| 2 | Aziz | 13.01.2026 | 2 400 000 | |
| 3 | Aziz | 06.01.2026 | 1 150 000 | |
| 4 | Aziz | 19.01.2026 | 3 800 000 | |
| 5 | Aziz | 04.01.2026 | 960 000 | |
| 6 | Aziz | 17.01.2026 | 1 720 000 | |
| 7 | Last payment | 19.01.2026 | ||
| 8 |
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Seller | Branch | Sales | Branch | Highest | ||
| 2 | Aziz | Tashkent | 18 400 000 | Tashkent | 19 600 000 | ||
| 3 | Dilnoza | Samarkand | 23 750 000 | Samarkand | 23 750 000 | ||
| 4 | Javohir | Tashkent | 15 900 000 | ||||
| 5 | Malika | Samarkand | 21 300 000 | ||||
| 6 | Sardor | Tashkent | 19 600 000 | ||||
| 7 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Employee | Target | Actual | Difference | Over target | |
| 2 | Aziz | 20 000 000 | 23 500 000 | 3 500 000 | 3 500 000 | |
| 3 | Dilnoza | 20 000 000 | 18 200 000 | -1 800 000 | 0 | |
| 4 | Javohir | 15 000 000 | 16 100 000 | 1 100 000 | 1 100 000 | |
| 5 | Malika | 15 000 000 | 14 000 000 | -1 000 000 | 0 | |
| 6 |
=МАКС(0;C3-B3) — if the target is missed, “over target” is 0, not negative. Very handy for bonuses and commissions| A | B | C | D | |
|---|---|---|---|---|
| 1 | Seller | Sales | ||
| 2 | Aziz | 18 400 000 | ||
| 3 | Dilnoza | 23 750 000 | ||
| 4 | Javohir | 15 900 000 | ||
| 5 | Malika | 21 300 000 | ||
| 6 | Sardor | 19 600 000 | ||
| 7 | Total | 98 950 0001 | ||
| 8 | Record? | 98 950 000 | ||
| 9 |
Pro level: MAX combinations
- TOP-3:
=НАИБОЛЬШИЙ(B2:B6;1),=НАИБОЛЬШИЙ(B2:B6;2),=НАИБОЛЬШИЙ(B2:B6;3)— LARGE returns the first, second and third largest value. - Who holds the record?
=ИНДЕКС(A2:A6;ПОИСКПОЗ(МАКС(B2:B6);B2:B6;0)), or in Excel 2021/365=ПРОСМОТРX(МАКС(B2:B6);B2:B6;A2:A6). - Each customer’s last payment:
=МАКСЕСЛИ(B:B;A:A;"Aziz")— a condition on the customer column (Excel 2019 and 365). - A lower limit:
=МАКС(B2;1000000)— even if the value is below 1 million, the result is at least 1 million (a minimum payment, for example). - Clamp into a range:
=МИН(МАКС(B2;0);100)— the result stays between 0 and 100. MIN sets the upper limit, MAX the lower one. - Spread:
=МАКС(B2:B6)-МИН(B2:B6)— the gap between the best and the weakest result.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Seller | Sales | Rank | Sales | Seller | ||
| 2 | Aziz | 18 400 000 | 1 | 23 750 000 | Dilnoza | ||
| 3 | Dilnoza | 23 750 000 | 2 | 21 300 000 | Malika | ||
| 4 | Javohir | 15 900 000 | 3 | 19 600 000 | Sardor | ||
| 5 | Malika | 21 300 000 | |||||
| 6 | Sardor | 19 600 000 | |||||
| 7 |
Try it in the simulator
Type =МАКС(B2:B6) in B7, =НАИБОЛЬШИЙ(B2:B6;2) in B8 and =МАКС(B2:B6)-МИН(B2:B6) in B9. Then select B7:B9 and fill right to column C. Check (January): 23,750,000, 21,300,000 and 7,850,000.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Seller | January | February | |||||||||||||||||||||
| 2 | Aziz | 18400000 | 20100000 | |||||||||||||||||||||
| 3 | Dilnoza | 23750000 | 22400000 | |||||||||||||||||||||
| 4 | Javohir | 15900000 | 17800000 | |||||||||||||||||||||
| 5 | Malika | 21300000 | 24900000 | |||||||||||||||||||||
| 6 | Sardor | 19600000 | 19300000 | |||||||||||||||||||||
| 7 | Record | |||||||||||||||||||||||
| 8 | 2nd place | |||||||||||||||||||||||
| 9 | Spread | |||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 | ||||||||||||||||||||||||
| 13 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.