Über diese Übung
Ein Datensatz mit 100 Zeilen auf einem Tabellenblatt, eine Antwortzelle, etwa 5 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.
So lösen Sie die Aufgabe
- E2
=VLOOKUP(C2,$G$2:$J$26,4,FALSE)
VLOOKUP searches the first column of the table ($G$2:$J$26, the SKUs) for the value in C2 and, once it finds the row, returns the value from the column you number — 4 is Unit price because the table starts at column G. FALSE (or 0) demands an exact SKU match; without it VLOOKUP assumes the list is sorted and returns the nearest smaller SKU, which gives wrong prices without any error. Because the formula points at the price list rather than copying numbers, changing a price in column J updates every order line that uses that SKU.
Pitfall 1: the column number counts from the first column of the table, not from column A — if your table starts at G, Unit price is column 4 even though it sits in column J. Pitfall 2: an unlocked table (G2:J26) slides down one row each time you fill, so the last orders search an empty range and return #N/A; lock it with F4 / ⌘T. Pitfall 3: VLOOKUP can only return columns to the right of the lookup column and breaks when someone inserts a column inside the table (the hard-coded 4 then points at a different field). Alternatives: =XLOOKUP(C2,$G$2:$G$26,$J$2:$J$26) names the return column directly (Excel 365), and =INDEX($J$2:$J$26,MATCH(C2,$G$2:$G$26,0)) is the classic version-independent form; both survive inserted columns. Performance: on tens of thousands of rows, VLOOKUP with FALSE scans the whole list for every row; sorting the list and using TRUE with an exact-match guard, or XLOOKUP with binary search mode 2, is dramatically faster.
Andere Wege, die funktionieren
- =XLOOKUP(C2,$G$2:$G$26,$J$2:$J$26) — Excel 365; the return column is named, no column counting
- =INDEX($J$2:$J$26,MATCH(C2,$G$2:$G$26,0)) — INDEX/MATCH, works in every Excel version
- =VLOOKUP(C2,$G$2:$J$26,4,0) — 0 is the same as FALSE
Häufige Fehler
Writing =VLOOKUP(C2,$G$2:$J$26,3,FALSE): column 3 of the table is Category, so every order shows a text like "Paper" instead of the price. Count the columns of the table, starting with the SKU column as 1.
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.