Перейти к содержимому
GridBelt
  • Тест по Excel
  • Упражнения
  • Программы
  • Цены
Войти
Начать бесплатный тест
  • Тест по Excel
  • Упражнения
  • Программы
  • Цены
ВойтиСоздать аккаунт
Начать бесплатный тест
GridBelt

Тренируйте навыки Excel прямо в браузере.

Тест по Excel

  • Уровень 1: Начальный
  • Уровень 2: Средний
  • Уровень 3: Продвинутый
  • Подготовка к тесту по Excel за 7 дней
  • Таблица лидеров
  • Тест по Excel на собеседовании
  • Тест по Excel от Indeed

Упражнения

  • Все упражнения
  • Программы
  • Для начинающих

Материалы

  • Формулы Excel
  • Горячие клавиши Excel

Компания

  • О проекте
  • Цены
  • Как мы проверяем

© GridBelt. Все права защищены.

  • Политика конфиденциальности
  • Условия использования
  • Политика возврата средств

Excel — товарный знак корпорации Microsoft. Indeed, TestGorilla, SHL и другие товарные знаки принадлежат их владельцам. GridBelt — независимый сайт для практики: он не связан с Microsoft, TestGorilla, SHL или Indeed, не одобрен и не спонсируется ими.

  1. Упражнения
  2. /
  3. COUNTIF and COUNTIFS

COUNTIF practice: orders per status on a 200-row export

  • Начальный
  • ~5 мин
  • COUNTIF and COUNTIFS

Текст упражнения на английском

The web shop's order export for September–October lists 200 orders with a Status column: Delivered, Shipped, Processing or Cancelled. Customer service wants a small status board — how many orders are in each state — that keeps updating as the export is refreshed. The four status names are already typed in G2:G5; put the counts next to them.

Что нужно сделать

  1. 1Click H2. The status for this summary row is in G2 ("Delivered"); the statuses of all orders are in D2:D201.
  2. 2Write COUNTIF with the range first and the criterion second: the range is D2:D201, the criterion is the cell G2 — not the typed word. Lock the range with $ (select it and press F4 on Windows, ⌘T on Mac) so it stays put when you fill down.
  3. 3Press Enter and fill H2 down to H5 (drag the fill handle, or select H2:H5 and press Ctrl+D / ⌘D).
  4. 4The four counts must add up to 200. Then click Check (Ctrl+Enter / ⌘+Return).

Ячейки ответа

Обратная связь

Введите формулу в таблицу, нажмите Enter, а затем «Проверить». Мы оцениваем значение в каждой ячейке ответа и формулу, которая его даёт.

Задания

  1. Не провереноIn H2:H5, use COUNTIF to count how many orders in D2:D201 have the status named in column G of the same row — one formula in H2, filled down.

Для заданий в таблице рекомендуем компьютер. Лист прокручивается внутри этой области.

StartInsertFormulasDataView
A1fxГотовим вашу рабочую книгу…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Введите формулу в лист, затем нажмите «Проверить».

Об этом упражнении

Набор данных (строк: 200) на одном листе, одна ячейка ответа, около 5 мин. Проверка прямо в браузере: значение и формула, которая его даёт, с обратной связью о том, что исправить.

Как решить

  • H2=COUNTIF($D$2:$D$201,G2)

COUNTIF(range, criterion) counts the cells in the range that match the criterion. With the range locked as $D$2:$D$201 and the criterion pointing at the label in column G, one formula filled down produces all four counts, and the board updates when the export is refreshed. Text criteria are matched case-insensitively, so "delivered" would count the same rows as "Delivered".

Pitfall 1: filling =COUNTIF(D2:D201,G2) down without $ shifts the range to D3:D202, D4:D203 … — the counts drift by a row each time and the totals no longer add up to 200. Pitfall 2: typing the status into the formula (=COUNTIF($D$2:$D$201,"Delivered")) works but must be edited in four places and breaks the fill-down; referencing G2 keeps the board data-driven. Pitfall 3: exports with trailing spaces or "Canceled" vs "Cancelled" create silent misses — a quick SUM of the counts against the row count catches them. Alternatives: COUNTIFS($D$2:$D$201,G2) is COUNTIF with room for more conditions (status and month, next exercise); SUMPRODUCT(($D$2:$D$201=G2)*1) is the array form; in Excel 365, =COUNTIF($D$2:$D$201,G2:G5) spills all four counts from one cell. Whole-column references (D:D) are acceptable here because column D holds only statuses and a header; avoid them inside SUMPRODUCT, which would evaluate a million rows.

Другие рабочие способы

  • =COUNTIFS($D$2:$D$201,G2) — same count with the multi-criteria function
  • =SUMPRODUCT(($D$2:$D$201=G2)*1) — array-style count without COUNTIF (not accepted here, because this task asks for COUNTIF)
  • =COUNTIF(D:D,G2) — whole-column reference; fine while column D holds nothing but statuses

Частые ошибки

Filling =COUNTIF(D2:D201,G2) down without locking the range: H3 counts D3:D202, H4 counts D4:D203, and the four counts no longer add up to 200.

Как мы проверяем

Принимается любая формула, которая даёт верный результат, если только задание не называет функцию: тогда другая функция даёт половину балла. Мы сравниваем значения с небольшим допуском и не учитываем регистр и пробелы в тексте. Верное число, введённое вручную вместо формулы, даёт половину балла. Задания с несколькими ячейками получают полный балл, если верны 100% ячеек, и половину — если верны от 50%. Там, где это важно, мы также меняем входную ячейку в копии вашего листа и проверяем, что формула пересчитывается правильно.

Ответы рассчитаны по правилам Excel 365 и 16 ноября 2026 г. сверены в нашей системе проверки. Автор: GridBelt team.

Входит в программы

  • Excel test in 7 days, План уровня 1День 3
  • Excel for Administrative AssistantsДень 2
  • Excel for Sales and MarketingДень 1

Похожие упражнения

  • Count .edu emails with a wildcardНачальный, ~4 мин
  • Orders per region and month with COUNTIFSСредний, ~7 мин
  • Sales by region with SUMIFНачальный, ~5 мин

Справка по функции

Официальная документация

Следующее упражнение

Count .edu emails with a wildcard