Zum Inhalt springen
GridBelt
  • Excel-Test
  • Übungen
  • Programme
  • Preise
Anmelden
Kostenlosen Test starten
  • Excel-Test
  • Übungen
  • Programme
  • Preise
AnmeldenKonto erstellen
Kostenlosen Test starten
GridBelt

Excel üben – direkt im Browser.

Excel-Test

  • Stufe 1: Anfänger
  • Stufe 2: Fortgeschrittene
  • Stufe 3: Experten
  • Excel-Test in 7 Tagen
  • Bestenliste
  • Excel-Test im Bewerbungsverfahren
  • Excel-Test von Indeed

Übungen

  • Alle Übungen
  • Programme
  • Für Anfänger

Ratgeber

  • Excel-Formeln
  • Excel-Tastenkombinationen

Unternehmen

  • Über uns
  • Preise
  • So bewerten wir

© GridBelt. Alle Rechte vorbehalten.

  • Datenschutzerklärung
  • Nutzungsbedingungen
  • Rückerstattungsrichtlinie

Excel ist eine Marke der Microsoft Corporation. Indeed, TestGorilla, SHL und andere Marken sind Eigentum ihrer jeweiligen Inhaber. GridBelt ist eine unabhängige Übungsplattform, steht mit Microsoft, TestGorilla, SHL oder Indeed in keiner Verbindung und wird von keinem dieser Unternehmen unterstützt oder gesponsert.

  1. Übungen
  2. /
  3. XLOOKUP

XLOOKUP vs VLOOKUP practice: replace the broken VLOOKUP

  • Fortgeschrittene
  • ~6 Min.
  • XLOOKUP
  • Excel 365

Übungstext auf Englisch

A café-supplies distributor prices 100 customer orders from the Products sheet (25 SKUs). The old order sheet used =VLOOKUP(C2,Products!$A$2:$D$26,4,FALSE) to pull the unit price. Last week purchasing inserted a Supplier column into Products, so column 4 of that table is now Category and the old formula returns "Milk & cream" instead of a price. Rewrite the lookup with XLOOKUP, which names the return column instead of counting to it, and add a quick SKU check that says "Not found" for unknown codes.

Ihre Aufgabe

  1. 1On Orders, click F2 and type =XLOOKUP(C2, — the SKU to find comes first, exactly as in VLOOKUP.
  2. 2Click the Products tab and select the SKU column A2:A26 (press F4 / ⌘T to lock it), type a comma, then select the Unit price column E2:E26 and lock it too. Close the bracket and press Enter.
  3. 3Fill F2 down to F101. No column number, no FALSE: XLOOKUP matches exactly by default and returns whatever column you point at.
  4. 4Click I2: look up the SKU typed in H2 in the same way, returning the Product column (B), and add "Not found" as the 4th argument so a wrong code does not show #N/A.

Antwortzellen

Feedback

Geben Sie Ihre Formel in die Tabelle ein, drücken Sie Enter und dann „Prüfen“. Wir bewerten den Wert in jeder Antwortzelle und die Formel dahinter.

Aufgaben

  1. Nicht geprüftIn F2, use XLOOKUP to return the unit price (Products column E) for the SKU in C2, matching against the SKU column of the Products sheet, then fill down to F101.
  2. Nicht geprüftIn I2, use XLOOKUP to return the product name (Products column B) for the SKU typed in H2, showing "Not found" when the SKU does not exist.

Für Tabellenaufgaben empfehlen wir einen Computer. Die Tabelle scrollt innerhalb dieses Rahmens.

StartInsertFormulasDataView
A1fxIhre Arbeitsmappe wird vorbereitet…
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

Geben Sie Ihre Formel in die Tabelle ein und prüfen Sie dann.

Über diese Übung

Ein Datensatz mit 125 Zeilen auf 2 Tabellenblättern, 2 Antwortzellen, etwa 6 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.

So lösen Sie die Aufgabe

  • Orders!F2=XLOOKUP(C2,Products!$A$2:$A$26,Products!$E$2:$E$26)
  • Orders!I2=XLOOKUP(H2,Products!$A$2:$A$26,Products!$B$2:$B$26,"Not found")

XLOOKUP(lookup_value, lookup_array, return_array) searches one column and returns the matching cell of another column — the return column is a range you select, not a number you count. That is why inserting the Supplier column did not break anything here: the formula still points at column E. The default match mode is exact, so there is no FALSE to remember, and the optional 4th argument replaces #N/A with your own text when the SKU is missing.

VLOOKUP vs XLOOKUP in one line each: VLOOKUP needs the key in the first column and counts columns to the right; XLOOKUP looks up any column and returns any other, left or right. VLOOKUP defaults to approximate match (TRUE) and silently returns wrong rows on unsorted data; XLOOKUP defaults to exact match. VLOOKUP needs IFERROR for missing keys; XLOOKUP has if_not_found built in. XLOOKUP also searches from the bottom (search_mode −1) and can return a whole row (return_array with several columns spills across). Pitfall 1: lookup_array and return_array must have the same number of rows, otherwise #VALUE!. Pitfall 2: XLOOKUP exists only in Excel 365 and 2021 — a file sent to Excel 2019 shows #NAME?, so keep VLOOKUP or INDEX/MATCH for mixed-version teams. Pitfall 3: the broken VLOOKUP is a real-world failure mode worth remembering — a hard-coded column number is a bet that nobody ever inserts a column.

Andere Wege, die funktionieren

  • =XLOOKUP(C2,Products!$A$2:$A$26,Products!$E$2:$E$26,"Not found",0) — explicit exact match mode (0) and a fallback for the price column too
  • =XLOOKUP(C2,Products!A:A,Products!E:E) — whole-column references; fine on a sheet that holds only the catalogue
  • =INDEX(Products!$E$2:$E$26,MATCH(C2,Products!$A$2:$A$26,0)) — the pre-365 equivalent (not accepted here: this task practices XLOOKUP)

Häufige Fehler

Carrying the VLOOKUP habit over: =XLOOKUP(C2,Products!$A$2:$E$26,5) — XLOOKUP has no column number; the second argument must be the single SKU column and the third the single price column.

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.

In diesen Programmen

  • Excel for Data AnalystsTag 4
  • Excel for Sales and MarketingTag 4
  • Excel for Accounting and BookkeepingTag 3

Ähnliche Übungen

  • Look left: employee ID by emailExperten, ~6 Min.
  • Two-criteria lookup (product and region)Experten, ~10 Min.
  • Pull the unit price with VLOOKUP (exact match)Anfänger, ~5 Min.
  • Show "Not found" instead of #N/AFortgeschrittene, ~7 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Look left: employee ID by email