Перейти к содержимому
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. IF function

IF and OR practice: free-shipping flag for 80 orders

  • Начальный
  • ~6 мин
  • IF function

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

An online store exports its October orders — 80 rows with the customer type (Member or Guest) and the order total. Shipping is free when the order total reaches the threshold stored in B1 ($75) or when the customer is a loyalty Member, whatever the basket size. Marketing changes the threshold for promotions, so the formula must read it from B1 rather than repeat the number.

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

  1. 1Click F3. The order total is in E3, the customer type in D3 and the threshold in B1.
  2. 2Build the test with OR: OR(E3>=B1,D3="Member") is TRUE when either comparison is true. Before pressing Enter, put the cursor on B1 in the formula and press F4 (Windows) or ⌘T (Mac) so it becomes $B$1 and stays fixed when you fill down.
  3. 3Wrap the test in IF with "Free" and "Standard" as the two results, press Enter, then fill F3 down to F82 (double-click the fill handle, or select F3:F82 and press Ctrl+D / ⌘D).
  4. 4Click F82 and read the formula bar: it must still say $B$1. Change B1 to 100 and watch the flags move, then put it back and click Check (Ctrl+Enter / ⌘+Return).

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

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

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

Задания

  1. Не провереноIn F3, use IF and OR to show "Free" when the order total in E3 is at least the threshold in B1 or the customer type in D3 is "Member", otherwise "Standard"; lock B1 as $B$1 and fill the formula down to F82.

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

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

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

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

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

Как решить

  • F3=IF(OR(E3>=$B$1,D3="Member"),"Free","Standard")

OR is the mirror image of AND: OR(E3>=$B$1,D3="Member") is TRUE when at least one of the two comparisons holds, and FALSE only when both fail. IF turns that into the Free / Standard label. The dollar signs in $B$1 matter because the formula is copied down: the row numbers in E3 and D3 should follow each order, but the threshold must keep pointing at B1 on every row.

Pitfall 1: =IF(OR(E3>=B1,…) without the $ signs looks right on row 3 and breaks from row 4 on, because B1 slides to B2 (a text caption) and then to empty cells — every comparison against them is TRUE or FALSE for the wrong reason. Pitfall 2: hard-coding the threshold (E3>=75) gives correct flags today and silently wrong ones after the next promotion; the grader changes B1 and expects the flags to follow. Pitfall 3: text comparisons are case-insensitive but not space-insensitive — "Member " with a trailing space from an export is not "Member"; TRIM the column first when the data is dirty. Alternatives: =IF((E3>=$B$1)+(D3="Member")>0,…) adds the booleans (any 1 means at least one TRUE); a lookup table of customer types with their own thresholds scales better when there are more than two tiers. Reading the result: COUNTIF(F3:F82,"Free") on top of this column is the first question marketing will ask — that is the next topic in this track.

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

  • =IF(OR(D3="Member",E3>=$B$1),"Free","Standard") — same conditions in the other order
  • =IF(AND(E3<$B$1,D3<>"Member"),"Standard","Free") — the rule expressed through its only failing case
  • =IF(OR(E3>=B$1,D3="Member"),"Free","Standard") — a mixed reference (B$1) is enough when you only fill down

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

Leaving B1 relative: after the fill, F4 compares against B2 and F5 against B3, so most rows read Standard. Lock the threshold as $B$1 (F4 on Windows, ⌘T on Mac) before filling down.

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

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

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

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

  • Excel for Administrative AssistantsДень 3
  • Excel for Sales and MarketingДень 2
  • Learn Excel From ScratchДень 5

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

  • Pass or Fail with IFНачальный, ~4 мин
  • Bonus eligibility with IF and ANDНачальный, ~5 мин
  • Total of orders above $500Начальный, ~4 мин

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

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

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

Flag rows with missing data