Excel tutorial
/

Data analysis

Beginner

How to filter in Excel: show only the rows you need, text and number filters, SUBTOTAL

Turn on Excel’s filter (Ctrl+Shift+L), filter by values, text and numbers, total filtered data correctly with SUBTOTAL, and use the FILTER function.

A filter shows only the rows you need and temporarily hides the rest. Nothing is deleted or moved — the other rows are simply out of sight.

Say your sales table has hundreds of records, but you only need the Samarkand branch, or only sales above 1,000,000 soum. A filter does that in seconds, and when you clear it the table returns to its original state.

Книга1 - Excel
—☐✕
A1fxEmployee
ABCDE
1EmployeeCityProductAmount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4JavohirTashkentSugar780 000
5MalikaBukharaFlour1 650 000
6SardorSamarkandOil540 000
7NodiraBukharaBread480 000
8BekzodSamarkandTea960 000
9
Готово
A filtered table: every header now has a ▼ button

Turn on the filter and pick values

1

Click any cell in the table and choose Данные → Фильтр, or press Ctrl + Shift + L. ▼ buttons appear in the header cells.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Получить данныеОбновить все
Получить данные
СортировкаФильтр
Сортировка и фильтр
Текст по столбцамУдалить дубликатыПроверка данных
Работа с данными
B3fxSamarkand
ABCDE
1EmployeeCityProductAmount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4JavohirTashkentSugar780 000
5MalikaBukharaFlour1 650 000
6SardorSamarkandOil540 000
7NodiraBukharaBread480 000
8BekzodSamarkandTea960 000
9
Готово

2

Click ▼ in the City column. Uncheck (Select All) — everything is cleared — and check only Samarkand. For long lists, type into the Search box at the top.

Книга1 - Excel
—☐✕
B1fxCity
ABCDE
1EmployeeCityСортировка от А до ЯСортировка от Я до АТекстовые фильтры(Выделить все)BukharaSamarkandTashkentProductAmount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4JavohirTashkentSugar780 000
5MalikaBukharaFlour1 650 000
6SardorSamarkandOil540 000
7NodiraBukharaBread480 000
8BekzodSamarkandTea960 000
9
Готово

3

Click OK. Only the Samarkand rows remain. The filtered column’s button shows a funnel icon, row numbers turn blue, and the status bar says “3 of 7 records found”.

Книга1 - Excel
—☐✕
D2fx2250000
ABCDE
1EmployeeCityProductAmount
2DilnozaSamarkandRice2 250 000
3SardorSamarkandOil540 000
4BekzodSamarkandTea960 000
5
ГотовоСреднее: 1250000Количество: 3Сумма: 3750000
The 3 visible rows are selected — Sum on the status bar: 3,750,000. The other 4 rows are hidden, not deleted

Text, number and date filters

The ▼ menu adapts to the data type in the column:

  • Text Filters — Equals, Begins With, Ends With, Contains, Does Not Contain.
  • Number Filters — Greater Than, Less Than, Between, Top 10, Above Average.
  • Date Filters — Today, This Week, Last Month, This Year and more; dates are grouped automatically by year → month → day.

Text filters support wildcards: * stands for any number of characters, ? for exactly one. For example, Sam* in an Equals condition finds everything that starts with “Sam”.

Number filter: sales above 1,000,000 soum

1

Click ▼ in the Amount column and choose Number Filters.

Книга1 - Excel
—☐✕
D1fxAmount
ABCDE
1EmployeeCityProductСортировка от минимального к максимальномуСортировка от максимального к минимальномуЧисловые фильтры(Выделить все)Amount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4JavohirTashkentSugar780 000
5MalikaBukharaFlour1 650 000
6SardorSamarkandOil540 000
7NodiraBukharaBread480 000
8BekzodSamarkandTea960 000
9
Готово

2

Choose Greater Than.... In the Custom AutoFilter box, type 1000000. For a second condition, pick And (both must be true) or Or (either is enough) and fill in the lower row.

Книга1 - Excel
—☐✕
D1fxAmount
ABCDE
1EmployeeCityProductAmount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4JavohirTashkentSugar780 000
5MalikaBukharaFlour1 650 000
6SardorSamarkandOil540 000
7NodiraBukharaBread480 000
8BekzodSamarkandTea960 000
9
Готово

3

Click OK — 3 large sales remain. Filters stack: add a City filter too, and both conditions apply at once.

Книга1 - Excel
—☐✕
fx
ABCDE
1EmployeeCityProductAmount
2AzizTashkentTea1 200 000
3DilnozaSamarkandRice2 250 000
4MalikaBukharaFlour1 650 000
5
Готово
With Amount > 1,000,000, 3 of 7 rows are visible

Totals after filtering: SUBTOTAL, not SUM

A filter only hides rows, so =СУММ(D2:D8) still adds up all 7 rows. To calculate visible rows only, use SUBTOTAL:

  • =ПРОМЕЖУТОЧНЫЕ.ИТОГИ(9;D2:D8) — the sum of visible rows (9 = SUM).
  • 1 — AVERAGE, 2 — COUNT, 3 — COUNTA, 4 — MAX, 5 — MIN.
  • 109, 101, 102… — the same, but they also skip rows you hid manually (Hide).

Press Автосумма below a filtered table and Excel inserts SUBTOTAL(9,…) instead of SUM by itself.

Книга1 - Excel
—☐✕
fx
ABCDE
1EmployeeCityProductAmount
2DilnozaSamarkandRice2 250 000
3SardorSamarkandOil540 000
4BekzodSamarkandTea960 000
5
6SUM7 860 0001
7SUBTOTAL3 750 0002
8
Готово
1: =SUM(D2:D8) also added the hidden rows — 7,860,000. 2: =SUBTOTAL(9,D2:D8) counts Samarkand only — 3,750,000

Pro level: Reapply, quick filtering and the FILTER function

  • Filters don’t refresh themselves. Change a value after filtering (say, Samarkand to Bukhara) and the row stays visible. Reapply the filter: Данные → Reapply or Ctrl + Alt + L.
  • By a cell’s value. Right-click a cell → Filter → Filter by Selected Cell’s Value — no need to open the list.
  • By color. ▼ → Filter by Color picks out rows colored by conditional formatting.
  • The FILTER function (Excel 2021/365). =ФИЛЬТР(A2:B7;B2:B7>1000000) returns matching rows somewhere else without touching the source and updates as soon as the data changes. Ideal for reports and dashboards.
Книга1 - Excel
—☐✕
D2fxAziz
ABCDEF
1EmployeeAmountEmployeeAmount
2Aziz1 200 000Aziz1 200 000
3Dilnoza2 250 000Dilnoza2 250 000
4Javohir780 000Malika1 650 000
5Malika1 650 000
6Sardor540 000
7Nodira480 000
8
ГотовоСреднее: 1700000Количество: 6Сумма: 5100000
The formula in D2: =FILTER(A2:B7,B2:B7>1000000). The result spills down; the source table stays as it is

Try it in the simulator

Select a cell in the table and turn on the filter buttons with Ctrl + Shift + L. Now check without filtering: type =СЧЁТЕСЛИ(B2:B8;"Samarkand") in F2 — that is how many rows a Samarkand filter would leave. Type =СУММЕСЛИ(B2:B8;"Samarkand";D2:D8) in F3 — it should match the 3,750,000 that the filter plus SUBTOTAL gives.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1EmployeeCityProductAmount
2AzizTashkentTea1200000
3DilnozaSamarkandRice2250000
4JavohirTashkentSugar780000
5MalikaBukharaFlour1650000
6SardorSamarkandOil540000
7NodiraBukharaBread480000
8BekzodSamarkandTea960000
9
10
11
12
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

41 / 154