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. VLOOKUP

VLOOKUP with IFERROR practice: show "Not found" instead of #N/A

  • Fortgeschrittene
  • ~7 Min.
  • VLOOKUP

Übungstext auf Englisch

Purchasing exported 100 order lines for printer consumables (November 2026) and needs the current unit price on each line from the Products sheet, a 30-SKU catalogue. 5 lines still reference SKUs that were discontinued and removed from the catalogue, so a plain lookup shows #N/A on those rows and breaks every total built on the column. Pull the price with a lookup, replace the error with the text "Not found", and count how many lines have no price.

Ihre Aufgabe

  1. 1On Orders, click E2 and write the lookup first: =VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE) — click the Products tab and select A2:D31 to get the prefix, F4 / ⌘T to lock it.
  2. 2Wrap it: =IFERROR(VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE),"Not found") — IFERROR returns the lookup when it works and the text when it errors.
  3. 3Fill E2 down to E101; the 5 discontinued SKUs now read "Not found" instead of #N/A.
  4. 4Click H2 and count the lines without a price: a COUNTIF over E2:E101 for the text "Not found".

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 E2, look up the unit price of the SKU in C2 on the Products sheet and show "Not found" instead of #N/A when the SKU is missing — IFERROR or IFNA around the lookup (XLOOKUP's if_not_found argument works too) — then fill down to E101.
  2. Nicht geprüftIn H2, count how many cells in E2:E101 say "Not found".

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 130 Zeilen auf 2 Tabellenblättern, 2 Antwortzellen, 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

  • Orders!E2=IFERROR(VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE),"Not found")
  • Orders!H2=COUNTIF(E2:E101,"Not found")

VLOOKUP with FALSE returns #N/A when the SKU is not in the first column of the table, and any SUM or AVERAGE over a column that contains #N/A becomes #N/A too. IFERROR(value, value_if_error) evaluates the lookup and, only if it produces an error, returns the second argument instead — here the text "Not found" — so the five discontinued lines become readable text and the rest keep their prices. COUNTIF over the finished column counts the text cells: 5 lines need a price decision.

Pitfall 1: IFERROR hides every error, including a #REF! from a broken table reference or a #VALUE! from a typo; IFNA replaces only #N/A, so a genuinely broken formula still shows its error — prefer IFNA when the only expected error is "no match". Pitfall 2: the fallback must be meaningful to whoever consumes the column; "Not found" works for humans, 0 is dangerous because it looks like a free item in totals, and an empty string "" silently disappears from counts. Pitfall 3: in Excel 2003 and earlier IFERROR did not exist, which is why old workbooks use =IF(ISNA(VLOOKUP(...)),"Not found",VLOOKUP(...)) — the lookup runs twice. Alternatives: =IFNA(VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE),"Not found"); =XLOOKUP(C2,Products!$A$2:$A$31,Products!$D$2:$D$31,"Not found") has the fallback built in as its 4th argument (365). Data-quality note: the count in H2 is the real deliverable — the five SKUs need either a replacement product or a clean-up of the order file, and the lookup column is where that gap becomes visible.

Andere Wege, die funktionieren

  • =IFNA(VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE),"Not found") — catches only #N/A, lets other errors through
  • =XLOOKUP(C2,Products!$A$2:$A$31,Products!$D$2:$D$31,"Not found") — Excel 365; the 4th argument is the fallback
  • =IF(ISNA(VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE)),"Not found",VLOOKUP(C2,Products!$A$2:$D$31,4,FALSE)) — the pre-2007 pattern
  • =COUNTA(E2:E101)-COUNT(E2:E101) in H2 — text cells = everything minus the numbers

Häufige Fehler

Putting the fallback inside VLOOKUP, e.g. =VLOOKUP(C2,Products!$A$2:$D$31,4,"Not found"): the 4th argument of VLOOKUP is the match type, not a fallback. The error handler wraps the whole lookup — IFERROR( lookup , "Not found" ).

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 test in 7 days, Plan für Stufe 2Tag 3
  • Excel for Administrative AssistantsTag 8
  • Excel for Accounting and BookkeepingTag 6

Ähnliche Übungen

  • Pull the unit price with VLOOKUP (exact match)Anfänger, ~5 Min.
  • Look up a customer tier from another sheetAnfänger, ~5 Min.
  • Replace VLOOKUP with XLOOKUPFortgeschrittene, ~6 Min.
  • INDEX and MATCH exact lookupFortgeschrittene, ~6 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Pick the month column with MATCH