Об этом упражнении
Набор данных (строк: 203) на одном листе, 2 ячейки ответа, около 6 мин. Проверка прямо в браузере: значение и формула, которая его даёт, с обратной связью о том, что исправить.
Как решить
- B1
=SUBTOTAL(103,A5:A204) - B2
=SUBTOTAL(109,G5:G204)
AutoFilter hides the rows that do not match, but hidden rows are still part of the sheet, so COUNT and SUM keep including them. SUBTOTAL is the function built for filtered lists: its first argument chooses the operation (103 = count non-empty, 109 = sum) and it skips every row the filter has hidden, so B1 shows 41 and B2 the West total instead of the figures for all 200 orders. Change the filter to another region and both cells update on their own.
Pitfall 1: SUBTOTAL(3,…) versus SUBTOTAL(103,…): the 1–11 codes ignore rows hidden by a filter but still count rows you hid manually; 101–111 ignore both. On a filtered list they agree, which is why either is accepted here. Pitfall 2: putting the SUBTOTAL cells inside or directly beneath the table — they get hidden by the filter or dragged into the sorted range. Keep summary cells above the headers or in a separate column block. Pitfall 3: nested SUBTOTALs are ignored by an outer SUBTOTAL (by design), so a grand total over sub-totals does not double count — useful for grouped reports. Alternatives: AGGREGATE(3,5,range) does the same with finer control over errors and hidden rows; the status bar shows Count and Sum of the selection for a quick check; for a permanent per-region report use COUNTIF/SUMIF instead of a filter (see the Logic track). Shortcuts: Ctrl+Shift+L (Windows) toggles the filter, ⌘+Shift+F on Mac; Alt+↓ on a caption opens its drop-down.
Другие рабочие способы
- =SUBTOTAL(3,A5:A204) and =SUBTOTAL(9,G5:G204) — the 1–11 series; identical on a filtered list
- =AGGREGATE(3,5,A5:A204) and =AGGREGATE(9,5,G5:G204) — option 5 ignores hidden rows
- =SUBTOTAL(102,F5:F204) — COUNT on the numeric Qty column gives the same count as 103 on Order ID
Частые ошибки
Writing =COUNTA(A5:A204) or =SUM(G5:G204): both still return the figures for all 200 orders, because filtering hides rows without removing them. Only SUBTOTAL (or AGGREGATE) skips hidden rows.
Как мы проверяем
Принимается любая формула, которая даёт верный результат, если только задание не называет функцию: тогда другая функция даёт половину балла. Мы сравниваем значения с небольшим допуском и не учитываем регистр и пробелы в тексте. Верное число, введённое вручную вместо формулы, даёт половину балла. Задания с несколькими ячейками получают полный балл, если верны 100% ячеек, и половину — если верны от 50%. Там, где это важно, мы также меняем входную ячейку в копии вашего листа и проверяем, что формула пересчитывается правильно.
Ответы рассчитаны по правилам Excel 365 и 15 ноября 2026 г. сверены в нашей системе проверки. Автор: GridBelt team.