Excel tutorial
/

Functions

Beginner

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.

Книга1 - Excel
—☐✕
B7fx=МАКС(B2:B6)
ABCD
1SellerMonthly sales
2Aziz18 400 000
3Dilnoza23 750 000
4Javohir15 900 000
5Malika21 300 000
6Sardor19 600 000
7Record23 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

AB
1DayTemperature, °C
2Monday31
3Tuesday36
4Wednesday34

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).

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
B7fx
ABCD
1SellerMonthly sales
2Aziz18 400 000
3Dilnoza23 750 000
4Javohir15 900 000
5Malika21 300 000
6Sardor19 600 000
7Record1
8
Готово

2

Excel suggests a range. Make sure the header or a “Total” row isn’t inside the border, then press Enter.

Книга1 - Excel
—☐✕
B7fx=МАКС(B2:B6)
ABCD
1SellerMonthly sales
2Aziz18 400 000
3Dilnoza23 750 000
4Javohir15 900 000
5Malika21 300 000
6Sardor19 600 000
7Record23 750 0002
8
ГотовоСреднее: 19790000Количество: 5Сумма: 98950000

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.

Книга1 - Excel
—☐✕
B7fx=МАКС(B2:B6)
ABCD
1CustomerPayment dateAmount
2Aziz13.01.20262 400 000
3Aziz06.01.20261 150 000
4Aziz19.01.20263 800 000
5Aziz04.01.2026960 000
6Aziz17.01.20261 720 000
7Last payment19.01.2026
8
Готово
Example 1: even with dates out of order, MAX finds the latest one: 19.01.2026
Книга1 - Excel
—☐✕
F2fx=МАКСЕСЛИ($C$2:$C$6;$B$2:$B$6;E2)
ABCDEFG
1SellerBranchSalesBranchHighest
2AzizTashkent18 400 000Tashkent19 600 000
3DilnozaSamarkand23 750 000Samarkand23 750 000
4JavohirTashkent15 900 000
5MalikaSamarkand21 300 000
6SardorTashkent19 600 000
7
Готово
Example 2: maximum with a condition — MAXIFS. Tashkent’s record: 19,600,000, Samarkand’s: 23,750,000
Книга1 - Excel
—☐✕
E3fx=МАКС(0;C3-B3)
ABCDEF
1EmployeeTargetActualDifferenceOver target
2Aziz20 000 00023 500 0003 500 0003 500 000
3Dilnoza20 000 00018 200 000-1 800 0000
4Javohir15 000 00016 100 0001 100 0001 100 000
5Malika15 000 00014 000 000-1 000 0000
6
Готово
Example 3: =МАКС(0;C3-B3) — if the target is missed, “over target” is 0, not negative. Very handy for bonuses and commissions
Книга1 - Excel
—☐✕
B8fx=МАКС(B2:B7)
ABCD
1SellerSales
2Aziz18 400 000
3Dilnoza23 750 000
4Javohir15 900 000
5Malika21 300 000
6Sardor19 600 000
7Total98 950 0001
8Record?98 950 000
9
ГотовоСреднее: 32983333,3333Количество: 6Сумма: 197900000
Trap: the “Total” row slipped into the range — MAX returned the total (98,950,000) instead of the record

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.
Книга1 - Excel
—☐✕
F2fx=ИНДЕКС($A$2:$A$6;ПОИСКПОЗ(E2;$B$2:$B$6;0))
ABCDEFG
1SellerSalesRankSalesSeller
2Aziz18 400 000123 750 000Dilnoza
3Dilnoza23 750 000221 300 000Malika
4Javohir15 900 000319 600 000Sardor
5Malika21 300 000
6Sardor19 600 000
7
Готово
A TOP-3 table: LARGE takes the rank from column D, INDEX/MATCH finds who owns that amount. Write the formulas once and fill down

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1SellerJanuaryFebruary
2Aziz1840000020100000
3Dilnoza2375000022400000
4Javohir1590000017800000
5Malika2130000024900000
6Sardor1960000019300000
7Record
82nd place
9Spread
10
11
12
13
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

71 / 154