Об этом упражнении
Набор данных (строк: 125) на 2 листах, одна ячейка ответа, около 6 мин. Проверка прямо в браузере: значение и формула, которая его даёт, с обратной связью о том, что исправить.
Как решить
- Timesheet!E2
=INDEX(Staff!$D$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0))
MATCH(C2,Staff!A2:A26,0) answers "which row of the ID list holds this ID?" with a position — a 1 for the first employee, 25 for the last — and the 0 insists on an exact match. INDEX(Staff!D2:D26, position) then returns the cell of the rate column at that same position. The two functions split the lookup into "find the row" and "read the column", which is why the rate column can be anywhere — left, right or on another sheet — and why inserting a column in Staff never breaks the formula.
Pitfall 1: the INDEX range and the MATCH range must be aligned — Staff!D1:D26 with Staff!A2:A26 is off by one and returns the previous employee's rate for everyone, with no error to warn you. Pitfall 2: leaving out the 0 in MATCH switches to approximate match; on this unsorted roster that returns wrong positions silently. Pitfall 3: MATCH returns #N/A when the ID is missing; wrap the whole INDEX in IFERROR or IFNA when the timesheet can contain IDs of leavers. INDEX/MATCH vs VLOOKUP: same result as =VLOOKUP(C2,Staff!$A$2:$D$26,4,FALSE) here, but INDEX/MATCH looks left, survives inserted columns, and on big tables a single MATCH can feed several INDEX formulas (rate, department, name) instead of repeating the search. In Excel 365, =XLOOKUP(C2,Staff!$A$2:$A$26,Staff!$D$2:$D$26) is the one-function replacement; INDEX/MATCH remains the form that opens in every Excel version and in most other spreadsheet tools.
Другие рабочие способы
- =INDEX(Staff!$A$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0),4) — INDEX over the whole table with a column number
- =IFERROR(INDEX(Staff!$D$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0)),"Unknown ID") — with a fallback for IDs that are not on the roster
- =XLOOKUP(C2,Staff!$A$2:$A$26,Staff!$D$2:$D$26) — Excel 365 equivalent (not accepted here: this task practices INDEX and MATCH)
Частые ошибки
Swapping the roles: =MATCH(C2,Staff!$D$2:$D$26,0) or =INDEX(Staff!$A$2:$A$26,…) — MATCH must search the column that contains the key (IDs), INDEX must return from the column you want (rates).
Как мы проверяем
Принимается любая формула, которая даёт верный результат, если только задание не называет функцию: тогда другая функция даёт половину балла. Мы сравниваем значения с небольшим допуском и не учитываем регистр и пробелы в тексте. Верное число, введённое вручную вместо формулы, даёт половину балла. Задания с несколькими ячейками получают полный балл, если верны 100% ячеек, и половину — если верны от 50%. Там, где это важно, мы также меняем входную ячейку в копии вашего листа и проверяем, что формула пересчитывается правильно.
Ответы рассчитаны по правилам Excel 365 и 16 ноября 2026 г. сверены в нашей системе проверки. Автор: GridBelt team.