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. IF function

IF and AND practice: bonus eligibility for 40 employees

  • Anfänger
  • ~5 Min.
  • IF function

Übungstext auf Englisch

HR is preparing the year-end bonus list for 40 employees. The policy has two conditions, and both must hold: a performance rating of at least 4 (on a 1–5 scale) and at least 12 months of service on 31 December. Column D holds the rating and column E the months of service. Add a column that reads Eligible or Not eligible for every employee — payroll will paste it straight into the bonus run, so every row must come from the same rule.

Ihre Aufgabe

  1. 1Click F2. The rating is in D2 and the months of service in E2; both conditions must be true for a bonus.
  2. 2Build the test with AND: AND(D2>=4,E2>=12) is TRUE only when both comparisons are true. Use it as the first argument of IF, with "Eligible" and "Not eligible" as the two results.
  3. 3Press Enter and fill F2 down to F41 (double-click the fill handle, or select F2:F41 and press Ctrl+D / ⌘D).
  4. 4Check the edge cases: rating 4 with 12 months is Eligible, rating 3 with 60 months is not. Then click Check (Ctrl+Enter / ⌘+Return).

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 IF and AND to show "Eligible" when the rating in D2 is at least 4 and the months of service in E2 are at least 12, otherwise "Not eligible"; fill the formula down to F41.

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 40 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

  • F2=IF(AND(D2>=4,E2>=12),"Eligible","Not eligible")

AND combines several tests into one: AND(D2>=4,E2>=12) is TRUE only when the rating is at least 4 and the tenure is at least 12 months, and FALSE as soon as either condition fails. Nesting it inside IF turns that TRUE/FALSE into the two labels the policy needs. Filling the formula down applies the same rule to all 40 rows, so the 24 employees who meet only one condition are excluded automatically.

Pitfall 1: AND is a function, not an operator — =IF(D2>=4 AND E2>=12,…) is a syntax error, and =IF(D2>=4,IF(E2>=12,"Eligible","Not eligible"),"Not eligible") works but repeats the else-branch and gets unreadable with a third condition. Pitfall 2: mixing up AND and OR flips the policy; with OR, anyone with 60 months of service would qualify regardless of rating. Pitfall 3: a blank rating compares as 0 and quietly fails the test; decide whether blanks mean "not rated yet" and handle them with IF(D2="",…). Alternatives: =IF((D2>=4)*(E2>=12),…) multiplies the two booleans (1×1 = 1 = TRUE), a pattern you will meet again in SUMPRODUCT; IFS cannot express "both" on its own, so AND stays the right tool. Design: put the thresholds 4 and 12 in cells of their own and reference them with $ so the policy can change without editing formulas; the free-shipping exercise in this track does exactly that.

Andere Wege, die funktionieren

  • =IF(AND(D2>=4,E2>=12),"Eligible","Not eligible") — reference solution
  • =IF((D2>=4)*(E2>=12)=1,"Eligible","Not eligible") — booleans multiplied instead of AND (accepted by the value check, but this task asks for AND)
  • =IF(OR(D2<4,E2<12),"Not eligible","Eligible") — the same rule stated through its failures

Häufige Fehler

Using OR instead of AND, so an employee with a rating of 3 and 60 months of service shows Eligible — the grader points at that row because only one of the two conditions holds there.

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 2
  • Excel for Administrative AssistantsTag 3
  • Excel for Sales and MarketingTag 2

Ähnliche Übungen

  • Pass or Fail with IFAnfänger, ~4 Min.
  • Free-shipping flag with IF and ORAnfänger, ~6 Min.
  • Flag rows with missing dataFortgeschrittene, ~5 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Free-shipping flag with IF and OR