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. COUNTIF and COUNTIFS

COUNTIF wildcard practice: count .edu addresses in 120 contacts

  • Anfänger
  • ~4 Min.
  • COUNTIF and COUNTIFS

Übungstext auf Englisch

120 people signed up for a data-literacy conference. The organiser offers an academic rate to anyone registering with a university address, and finance wants to know how many sign-ups qualify before the invoices go out. A qualifying address ends in .edu — the list also contains .edu.au addresses from Australian institutions and company domains with "edu" inside the name, which do not qualify. Count the .edu addresses with one formula in H2.

Ihre Aufgabe

  1. 1Click H2. The email addresses are in D2:D121.
  2. 2Write COUNTIF with the range first and the criterion second. The criterion is text in quotes: an asterisk stands for any number of characters, so "*.edu" means "anything, then .edu at the very end".
  3. 3Press Enter. The count is case-insensitive, so addresses written in upper case (…@LAKESIDE.EDU) are included automatically.
  4. 4Sanity-check against the list: the 4 addresses ending in .edu.au must not be counted. 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 H2, use COUNTIF with a wildcard to count how many email addresses in D2:D121 end in ".edu".

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 120 Zeilen auf einem Tabellenblatt, eine Antwortzelle, etwa 4 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.

So lösen Sie die Aufgabe

  • H2=COUNTIF(D2:D121,"*.edu")

COUNTIF accepts wildcards in text criteria: * stands for any sequence of characters (including none) and ? for exactly one character. "*.edu" therefore matches every address that ends in .edu, whatever comes before, and the comparison ignores case — 38 rows here. Because nothing may follow the pattern, an address ending in .edu.au is not matched, which is exactly the distinction finance needs.

Pitfall 1: "*edu*" matches "edu" anywhere — it returns 45 on this list by also counting .edu.au addresses and domains such as educonsult.com and medu.org. Pitfall 2: "*.edu" also matches a bare value ".edu" or "x.edu" with no @; if the data can contain junk, "*@*.edu" is the stricter pattern. Pitfall 3: to match a literal asterisk or question mark, escape it with a tilde ("~*"); and wildcards only work on text — a numeric column needs its own criteria (">500"). Alternatives: SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) tests the last four characters without wildcards; COUNTIFS(D2:D121,"*.edu") is the same count with room for a second condition (role, country). In Excel 365, =ROWS(FILTER(D2:D121,RIGHT(D2:D121,4)=".edu")) lists and counts in one go; COUNTIF remains the fastest and most portable version.

Andere Wege, die funktionieren

  • =COUNTIF(D2:D121,"*@*.edu") — stricter: requires an @ before the domain
  • =COUNTIFS(D2:D121,"*.edu") — the same count written with COUNTIFS (not accepted here, because this task asks for COUNTIF)
  • =SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) — compares the last four characters instead of using a wildcard

Häufige Fehler

Writing the criterion as "*edu*" or "edu": the first over-counts (45 instead of 38) because it also matches .edu.au and company names containing "edu"; the second counts nothing, because COUNTIF without wildcards needs the whole cell to equal the text.

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.

Ähnliche Übungen

  • Orders per status with COUNTIFAnfänger, ~5 Min.
  • Orders between two datesFortgeschrittene, ~6 Min.
  • Flag rows with missing dataFortgeschrittene, ~5 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Orders per region and month with COUNTIFS