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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Javohir | Tashkent | Sugar | 780 000 | |
| 5 | Malika | Bukhara | Flour | 1 650 000 | |
| 6 | Sardor | Samarkand | Oil | 540 000 | |
| 7 | Nodira | Bukhara | Bread | 480 000 | |
| 8 | Bekzod | Samarkand | Tea | 960 000 | |
| 9 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Javohir | Tashkent | Sugar | 780 000 | |
| 5 | Malika | Bukhara | Flour | 1 650 000 | |
| 6 | Sardor | Samarkand | Oil | 540 000 | |
| 7 | Nodira | Bukhara | Bread | 480 000 | |
| 8 | Bekzod | Samarkand | Tea | 960 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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Javohir | Tashkent | Sugar | 780 000 | |
| 5 | Malika | Bukhara | Flour | 1 650 000 | |
| 6 | Sardor | Samarkand | Oil | 540 000 | |
| 7 | Nodira | Bukhara | Bread | 480 000 | |
| 8 | Bekzod | Samarkand | Tea | 960 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”.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 3 | Sardor | Samarkand | Oil | 540 000 | |
| 4 | Bekzod | Samarkand | Tea | 960 000 | |
| 5 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Javohir | Tashkent | Sugar | 780 000 | |
| 5 | Malika | Bukhara | Flour | 1 650 000 | |
| 6 | Sardor | Samarkand | Oil | 540 000 | |
| 7 | Nodira | Bukhara | Bread | 480 000 | |
| 8 | Bekzod | Samarkand | Tea | 960 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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Javohir | Tashkent | Sugar | 780 000 | |
| 5 | Malika | Bukhara | Flour | 1 650 000 | |
| 6 | Sardor | Samarkand | Oil | 540 000 | |
| 7 | Nodira | Bukhara | Bread | 480 000 | |
| 8 | Bekzod | Samarkand | Tea | 960 000 | |
| 9 |
3
Click OK — 3 large sales remain. Filters stack: add a City filter too, and both conditions apply at once.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Aziz | Tashkent | Tea | 1 200 000 | |
| 3 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 4 | Malika | Bukhara | Flour | 1 650 000 | |
| 5 |
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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | City | Product | Amount | |
| 2 | Dilnoza | Samarkand | Rice | 2 250 000 | |
| 3 | Sardor | Samarkand | Oil | 540 000 | |
| 4 | Bekzod | Samarkand | Tea | 960 000 | |
| 5 | |||||
| 6 | SUM | 7 860 0001 | |||
| 7 | SUBTOTAL | 3 750 0002 | |||
| 8 |
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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Employee | Amount | Employee | Amount | ||
| 2 | Aziz | 1 200 000 | Aziz | 1 200 000 | ||
| 3 | Dilnoza | 2 250 000 | Dilnoza | 2 250 000 | ||
| 4 | Javohir | 780 000 | Malika | 1 650 000 | ||
| 5 | Malika | 1 650 000 | ||||
| 6 | Sardor | 540 000 | ||||
| 7 | Nodira | 480 000 | ||||
| 8 |
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.
| 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 | Employee | City | Product | Amount | ||||||||||||||||||||
| 2 | Aziz | Tashkent | Tea | 1200000 | ||||||||||||||||||||
| 3 | Dilnoza | Samarkand | Rice | 2250000 | ||||||||||||||||||||
| 4 | Javohir | Tashkent | Sugar | 780000 | ||||||||||||||||||||
| 5 | Malika | Bukhara | Flour | 1650000 | ||||||||||||||||||||
| 6 | Sardor | Samarkand | Oil | 540000 | ||||||||||||||||||||
| 7 | Nodira | Bukhara | Bread | 480000 | ||||||||||||||||||||
| 8 | Bekzod | Samarkand | Tea | 960000 | ||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.