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

VLOOKUP approximate match practice: shipping cost by weight band

  • Средний
  • ~7 мин
  • VLOOKUP

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

A fulfilment team ships 80 parcels a day and prices them by weight band: 6 bands from under 1 kg to 20 kg and above, listed in F2:H7 with the lower bound of each band in column F and its cost in column H. Weights have one decimal and almost never equal a bound, so an exact-match lookup is useless here. Price every parcel with one formula that finds the band a weight falls into — the approximate match that VLOOKUP was built for.

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

  1. 1Check the band table first: column F must be sorted ascending (0, 1, 2, 5, 10, 20) — approximate VLOOKUP relies on that order.
  2. 2Click D2 and type =VLOOKUP(C2, then select F2:H7 and press F4 (Windows) or ⌘T (Mac) to lock it as $F$2:$H$7.
  3. 3Type ,3,TRUE) and press Enter: 3 is the Cost column and TRUE asks for the largest lower bound that is less than or equal to the weight.
  4. 4Fill D2 down to D81. Check a parcel that weighs exactly 5.0 kg: it must get the 5–9.9 kg price, because the lower bound is inclusive.

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

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

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

Задания

  1. Не провереноIn D2, return the shipping cost for the weight in C2 from the band table F2:H7 with an approximate-match lookup (VLOOKUP with TRUE), then fill the formula down to D81.

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

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

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

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

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

Как решить

  • D2=VLOOKUP(C2,$F$2:$H$7,3,TRUE)

With TRUE as the last argument VLOOKUP no longer looks for the weight itself; it walks down the sorted lower bounds in column F and stops at the last one that is less than or equal to the weight, then returns the cost from that row. A 2.4 kg parcel passes 0, 1 and 2 but not 5, so it gets the 2–4.9 kg price; a parcel weighing exactly 5.0 kg matches the 5 kg bound and gets the 5–9.9 kg price. The band table does the pricing, so changing a bound or a cost in F:H reprices every parcel at once.

Pitfall 1: approximate match requires the first column sorted ascending; an unsorted table returns plausible-looking wrong prices with no error, which is why TRUE is dangerous on anything but a bands table. Pitfall 2: a weight below the first bound (impossible here because the table starts at 0) returns #N/A — always start a bands table at 0 or at the smallest possible value. Pitfall 3: writing the bands as nested IFs (=IF(C2<1,4.9,IF(C2<2,6.5,…))) hard-codes every cost and bound into 80 formulas; the next price change means editing all of them, and the grader flags the hard-coded costs. Alternatives: =XLOOKUP(C2,$F$2:$F$7,$H$2:$H$7,,-1) (match mode −1 = exact or next smaller item, no sort order required), =XLOOKUP(C2,$G$2:$G$7,$H$2:$H$7,,1) against the upper bounds (next larger), =INDEX($H$2:$H$7,MATCH(C2,$F$2:$F$7,1)) and the compact =LOOKUP(C2,$F$2:$F$7,$H$2:$H$7). Modeling note: the same pattern prices tax brackets, commission tiers, volume discounts and grade boundaries — anything defined by thresholds.

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

  • =VLOOKUP(C2,$F$2:$H$7,3) — the 4th argument defaults to TRUE
  • =XLOOKUP(C2,$F$2:$F$7,$H$2:$H$7,,-1) — Excel 365; match mode −1 returns the exact match or the next smaller bound
  • =INDEX($H$2:$H$7,MATCH(C2,$F$2:$F$7,1)) — MATCH type 1 is the approximate match
  • =LOOKUP(C2,$F$2:$F$7,$H$2:$H$7) — LOOKUP is always approximate

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

Using FALSE out of habit: =VLOOKUP(C2,$F$2:$H$7,3,FALSE) looks for a bound equal to the weight, so 2.4 returns #N/A and only parcels that weigh exactly 1.0, 2.0, 5.0, 10.0 or 20.0 kg get a price.

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

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

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

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

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

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

  • Pull the unit price with VLOOKUP (exact match)Начальный, ~5 мин
  • Show "Not found" instead of #N/AСредний, ~7 мин
  • Pick the month column with MATCHСредний, ~7 мин
  • Replace VLOOKUP with XLOOKUPСредний, ~6 мин

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

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

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

Show "Not found" instead of #N/A