Excel tutorial
/

Functions

Intermediate

Excel LARGE and SMALL: Top 3, bottom values and leaderboards

LARGE returns the k-th largest value and SMALL the k-th smallest. Top-3 sales, a leaderboard with names, the tie trap and judges’ scores — with examples.

MAX gives you the largest number. But managers usually want a top three: “Who are the 3 best salespeople?”, “Which 3 offers are cheapest?”, “Which 5 clients pay latest?”.

LARGE returns the k-th largest value in a list, and SMALL the k-th smallest. With k = 1 they match MAX and MIN; k = 2, 3 … give second, third place.

No need to sort the table: the Top 3 sits in its own spot and updates itself when the data changes.

Книга1 - Excel
—☐✕
E3fx=НАИБОЛЬШИЙ($B$2:$B$8;D3)
ABCDEFG
1ManagerSales (m)kLargestSmallest
2Aziz4817139
3Dilnoza6226244
4Javohir5535548
5Malika71
6Sardor39
7Nodira51
8Bobur44
9
Готово
Top 3: 71, 62, 55. Bottom 3: 39, 44, 48. With k in its own column, you just fill one formula down

Syntax

=НАИБОЛЬШИЙ(array; k) — the k-th largest value.

=НАИМЕНЬШИЙ(array; k) — the k-th smallest value.

  • array — a range of numbers. Lock it when filling down: $B$2:$B$8.
  • k — which position: 1 is the largest (or smallest), 2 the second, and so on. A number or a cell reference.

Empty cells and text are ignored. If k is greater than the count of numbers or less than 1 — #NUM!.

Entering LARGE step by step

1

Type 1, 2, 3 in D2:D4 — these are the k values. Select E2.

2

Формулы → Вставить функцию → category Statistical → LARGE → OK.

Книга1 - Excel
—☐✕
E2fx
ABCDEF
1ManagerSales (m)kLargest
2Aziz481
3Dilnoza622
4
5
Готово

3

In Array, select B2:B8 and press F4 ($B$2:$B$8); in K, enter D2 and click OK.

Книга1 - Excel
—☐✕
E2fx=НАИБОЛЬШИЙ($B$2:$B$8;D2)
ABCDEF
1ManagerSales (m)kLargest
2Aziz48171
3Dilnoza622
4Javohir553
5Malika71
6Sardor39
7Nodira51
8Bobur44
9
ГотовоСреднее: 52,8571Количество: 7Сумма: 370

4

Fill E2 down to E4. In F2 type =НАИМЕНЬШИЙ($B$2:$B$8;D2) the same way and fill it down — the bottom three are ready.

Книга1 - Excel
—☐✕
F2fx=ИНДЕКС($A$2:$A$8;ПОИСКПОЗ(E2;$B$2:$B$8;0))
ABCDEFG
1ManagerSales (m)PlaceSalesWho
2Aziz48171Malika
3Dilnoza62262Dilnoza
4Javohir55355Javohir
5Malika71
6Sardor39
7Nodira51
8Bobur44
9
Готово
Example 1: LARGE finds the amount, INDEX + MATCH finds who it belongs to. The result is a ready “Top 3 managers” table
Книга1 - Excel
—☐✕
F3fx=ИНДЕКС($A$2:$A$7;ПОИСКПОЗ(E3;$B$2:$B$7;0))
ABCDEFG
1ManagerSales (m)PlaceSalesWho
2Aziz48162Dilnoza
3Dilnoza62262Dilnoza
4Javohir55355Javohir
5Malika62
6Sardor39
7Nodira51
8
Готово
Example 2: the trap. Dilnoza and Malika both sold 62. LARGE correctly returns 62 twice, but MATCH always finds the first one — Dilnoza appears twice, Malika not at all
Книга1 - Excel
—☐✕
B8fx=(СУММ(B2:B6)-НАИБОЛЬШИЙ(B2:B6;1)-НАИМЕНЬШИЙ(B2:B6;1))/(СЧЁТ(B2:B6)-2)
ABCD
1JudgeScore
2Judge 18,50
3Judge 29,00
4Judge 37,00
5Judge 48,80
6Judge 59,60
7Simple average8,58
8Final score8,77
9
Готово
Example 3: the sports-judging rule — drop the highest and lowest scores. LARGE(…,1) and SMALL(…,1) subtract them: 8.77 (simple average 8.58)

Pro level: break ties and build a dynamic Top N

  • Automatic k: instead of a k column use =НАИБОЛЬШИЙ($B$2:$B$8;ЧСТРОК($E$2:E2)) — ROWS grows 1, 2, 3 … as you fill down.
  • Duplicate names: in a helper column add a tiny bump to each amount: =B2+СТРОКА()/1000000 — every value becomes unique, LARGE and MATCH work on that column, and names no longer repeat.
  • One formula in Excel 365: =TAKE(СОРТ(A2:B8;2;-1);3) — a correct Top-3 table (name + amount) even with ties.
  • With a condition: =НАИБОЛЬШИЙ(ЕСЛИ(A2:A50="Tashkent";C2:C50);2) — the second-largest sale in Tashkent. For k = 1, MAXIFS is simpler.
  • With dates: SMALL finds the nearest deadline — =НАИМЕНЬШИЙ(C2:C50;СЧЁТЕСЛИ(C2:C50;"<"&СЕГОДНЯ())+1) — the first payment date after today.

Try it in the simulator

Type =НАИБОЛЬШИЙ($B$2:$B$8;D2) in E2 and =НАИМЕНЬШИЙ($B$2:$B$8;D2) in F2, then fill both down to row 4. Then change 71 in B5 to 30 — how did the Top 3 and the bottom 3 change?

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ManagerSales (m)kLargestSmallest
2Aziz481
3Dilnoza622
4Javohir553
5Malika71
6Sardor39
7Nodira51
8Bobur44
9
10
11
12
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

130 / 154