Über diese Übung
Ein Datensatz mit 80 Zeilen auf einem Tabellenblatt, eine Antwortzelle, etwa 7 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.
So lösen Sie die Aufgabe
- 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.
Andere Wege, die funktionieren
- =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
Häufige Fehler
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.
So bewerten wir
Jede Formel, die das richtige Ergebnis liefert, wird akzeptiert, außer die Aufgabe nennt eine Funktion: Dann bringt eine andere Funktion die halbe Punktzahl. Wir vergleichen Werte mit einer kleinen Toleranz und ignorieren bei Text Groß- und Kleinschreibung sowie Leerzeichen. Eine richtige Zahl, die statt einer Formel von Hand eingetippt wurde, bringt die halbe Punktzahl. Aufgaben mit mehreren Zellen bringen die volle Punktzahl, wenn 100% der Zellen stimmen, und die halbe ab 50%. Wo es darauf ankommt, ändern wir außerdem eine Eingabezelle in einer Kopie Ihrer Tabelle und prüfen, ob Ihre Formel mitzieht.
Antworten nach den Regeln von Excel 365 berechnet und am 16. November 2026 in unserem Bewertungssystem geprüft. Verfasst von GridBelt team.