Перейти к содержимому
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 function practice: Pass or Fail for 60 exam scores

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

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

The training department ran the final exam of a six-week spreadsheet course for 60 employees in three sections (Morning, Evening, Online). Scores are out of 100 and the pass mark is 60: a score of exactly 60 passes. HR wants a Result column that reads Pass or Fail on every row so the certificates can be printed from a filter, and it must still be right when a score is corrected later.

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

  1. 1Click E2. The score for this student is in D2 and the pass mark is 60.
  2. 2Enter an IF formula with three parts: the test (is D2 at least 60?), the text to show when the test is true ("Pass") and the text to show otherwise ("Fail"). Put the two words in double quotes.
  3. 3Press Enter, then fill E2 down to E61: double-click the fill handle (the small square at the bottom-right corner of E2), or select E2:E61 and press Ctrl+D (Windows) / ⌘D (Mac).
  4. 4Spot-check a student with exactly 60 points — the cell must say Pass — then click Check (Ctrl+Enter / ⌘+Return).

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

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

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

Задания

  1. Не провереноIn E2, write an IF formula that shows "Pass" when the score in D2 is 60 or more and "Fail" otherwise, then fill it down to E61.

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

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

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

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

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

Как решить

  • E2=IF(D2>=60,"Pass","Fail")

IF evaluates a test and returns one of two values: =IF(D2>=60,"Pass","Fail") asks "is the score at least 60?" and answers Pass when it is and Fail when it is not. The test uses >= (greater than or equal) because the pass mark itself passes. Because the formula points at D2 rather than containing the score, filling it down gives every row its own verdict, and correcting a score updates the result immediately.

Pitfall 1: writing > instead of >= moves the boundary — the 3 students with exactly 60 points would be marked Fail, which is the kind of error nobody notices until a student complains. Pitfall 2: text results need quotes; =IF(D2>=60,Pass,Fail) returns #NAME? because Excel looks for named ranges called Pass and Fail. Pitfall 3: a blank score is treated as 0 and reads Fail — wrap the test in IF(D2="","",…) when the data can have gaps. Design: keep the pass mark in its own cell (for example G1) and reference it as $G$1, so a change by the exam board is one edit instead of 60 formula changes; that is exactly what the next exercises in this track practise. Alternatives: IFS(D2>=60,"Pass",TRUE,"Fail") reads the same in Excel 2019 and later; for more than two outcomes (Distinction / Pass / Fail) use IFS or a nested IF.

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

  • =IF(D2<60,"Fail","Pass") — the same test written the other way round
  • =IFS(D2>=60,"Pass",TRUE,"Fail") — Excel 2019 and later; TRUE is the catch-all branch
  • =IF(D2>=60,"Pass","Fail") with the pass mark moved to a cell: =IF(D2>=$G$1,"Pass","Fail")

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

Testing D2>60 instead of D2>=60: the formula looks right on most rows, but every student with exactly 60 points is marked Fail — the grader names the first of those cells.

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

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

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

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

  • Excel test in 7 days, План уровня 1День 6
  • Excel for Administrative AssistantsДень 3
  • Learn Excel From ScratchДень 5

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

  • Bonus eligibility with IF and ANDНачальный, ~5 мин
  • Free-shipping flag with IF and ORНачальный, ~6 мин
  • Commission tiers with nested IF, IFS or a lookupСредний, ~8 мин

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

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

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

Bonus eligibility with IF and AND