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. Drop-down lists

Data validation practice: restrict quantity to whole numbers 1–100

  • Fortgeschrittene
  • ~7 Min.
  • Drop-down lists

Übungstext auf Englisch

An order-line import holds 100 lines with the quantity typed by hand in D2:D101. The warehouse accepts whole units from 1 to 100 per line (the limits are in I2 and I3). The import is messy: decimals such as 12.5, numbers outside the range, words ("ten", "12 pcs"), quantities that look like numbers but were typed as text ("15") and 2 empty cells. Before the column gets a data-validation rule, the operations lead wants every line checked against the same rule, and the number of lines to fix.

Ihre Aufgabe

  1. 1Click F2 and type =IF(ISNUMBER(D2),AND(D2=INT(D2),D2>=$I$2,D2<=$I$3),FALSE). Press F4 (Windows) or ⌘T (Mac) on I2 and I3 to lock them.
  2. 2Why IF and not one AND: AND evaluates all of its arguments, and INT("ten") is #VALUE!, so =AND(ISNUMBER(D2),D2=INT(D2),…) shows #VALUE! for the word rows. IF looks at ISNUMBER first and only then runs the tests. D2=INT(D2) is the whole-number test: 12.5 is not equal to 12.
  3. 3Fill F2 down to F101: double-click the fill handle, or select F2:F101 and press Ctrl+D (Windows) / ⌘D (Mac). 1 and 100 themselves are TRUE — the limits are included.
  4. 4Click I4 and count the lines that break the rule: =COUNTIF(F2:F101,FALSE).
  5. 5Now add the rule itself: select D2:D101, then Data → Data Validation (Windows keyboard: Alt, A, V, V; on Mac Data → Data Validation). Allow: Whole number; Data: between; Minimum =$I$2; Maximum =$I$3; clear "Ignore blank" because a quantity is required; on the Error Alert tab choose Stop and write "Enter a whole number from 1 to 100." The checker grades column F and I4; the rule is what stops the next bad entry.

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, return TRUE when D2 holds a whole number between the minimum in I2 and the maximum in I3 (both included) and FALSE otherwise — text, decimals, empty cells and numbers outside the limits are all FALSE — then fill down to F101.
  2. Nicht geprüftIn I4, count the lines whose quantity breaks the rule.

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 100 Zeilen auf einem Tabellenblatt, 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

  • F2=IF(ISNUMBER(D2),AND(D2=INT(D2),D2>=$I$2,D2<=$I$3),FALSE)
  • I4=COUNTIF(F2:F101,FALSE)

A Whole number rule in data validation accepts an entry only if it is a number, has no fractional part and lies between the minimum and the maximum, both included. The helper column applies the same three tests to the quantities that are already there. ISNUMBER(D2) rejects text — also "15" typed as text, which looks like a number but is ignored by SUM; D2=INT(D2) rejects decimals such as 12.5; D2>=$I$2 and D2<=$I$3 keep the limits in their cells, so 1 and 100 pass and 101 fails. IF runs the tests only when D2 is a number, because AND evaluates every argument and would turn INT("ten") into #VALUE!.

Pitfall 1: =AND(ISNUMBER(D2),D2=INT(D2),…) looks right but returns #VALUE! for the word rows (3, 50): AND does not stop at the first FALSE. Use IF(ISNUMBER(D2),AND(…),FALSE), or wrap the AND in IFERROR(…,FALSE). Pitfall 2: text that looks like a number (rows 9, 94) is not counted by SUM and not accepted by a Whole number rule; convert it with VALUE or Data → Text to Columns before it reaches a total. Pitfall 3: > and < instead of >= and <= reject the limits themselves (rows 7, 76, 92, 101); the dialog's "between" includes both limits. Alternatives: MOD(D2,1)=0 and ROUND(D2,0)=D2 are other whole-number tests — keep them inside the IF as well. A Custom validation rule can use the helper's formula directly: =IF(ISNUMBER(D2),AND(D2=INT(D2),D2>=$I$2,D2<=$I$3),FALSE). Data validation only checks new typing: values already in the column or pasted over it are not re-checked, which is why the helper column (or Circle Invalid Data in desktop Excel) is the audit step.

Andere Wege, die funktionieren

  • =IFERROR(AND(ISNUMBER(D2),D2=INT(D2),D2>=$I$2,D2<=$I$3),FALSE) — IFERROR turns the #VALUE! of the word rows into FALSE
  • =IF(ISNUMBER(D2),AND(MOD(D2,1)=0,D2>=$I$2,D2<=$I$3),FALSE) — MOD(D2,1) is the fractional part
  • =IF(ISNUMBER(D2),AND(D2=ROUND(D2,0),D2>=$I$2,D2<=$I$3),FALSE) — ROUND to 0 decimals as the whole-number test
  • =SUMPRODUCT(--(F2:F101=FALSE)) — another way to count the FALSE rows

Häufige Fehler

Leaving out the whole-number test: =IF(ISNUMBER(D2),AND(D2>=$I$2,D2<=$I$3),FALSE) marks 3 decimal quantities such as 12.5 as valid, although the warehouse cannot ship half a unit.

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 3Tag 2
  • Excel for Data AnalystsTag 6
  • Excel for Administrative AssistantsTag 10

Ähnliche Übungen

  • Drop-down list of regions (data validation)Fortgeschrittene, ~7 Min.
  • Highlight overdue invoices (conditional formatting)Fortgeschrittene, ~8 Min.
  • Highlight the top 10 % of salesFortgeschrittene, ~8 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Pivot without a pivot: revenue by category and month with SUMIFS