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. Remove duplicates

Remove duplicates practice: list unique customers with UNIQUE

  • Fortgeschrittene
  • ~8 Min.
  • Remove duplicates
  • Excel 365

Übungstext auf Englisch

An online-shop export lists 300 orders from January to October 2026 with the customer name typed by hand in column C. The same few dozen companies come back again and again, and the typing shows: 18 rows use a different letter case ("oakridge marine") and 14 rows end with a stray space you cannot see. Marketing wants one clean list of customers, the number of distinct customers, and — order by order — how many orders that customer placed, without deleting a single row of the export.

Ihre Aufgabe

  1. 1Click G2 and type =UNIQUE(TRIM(C2:C301)). Press Enter: the customer list spills down column G on its own — no fill-down, no Ctrl+Shift+Enter (⌘+Shift+Enter on Mac).
  2. 2TRIM removes the stray trailing spaces before UNIQUE compares the names. UNIQUE already ignores letter case, but it treats "Ridgeway Analytics " and "Ridgeway Analytics" as two customers — that is the first trailing-space row of the export (row 16).
  3. 3Click J2 and count the names: =ROWS(UNIQUE(TRIM(C2:C301))), or =COUNTA(G2:G301) over the spilled column. (Desktop Excel also accepts the spill reference G2#; this in-browser grid does not, so count the range or the UNIQUE itself.) J3 fills in by itself once J2 has a value.
  4. 4Click F2 and count this customer's orders, trailing-space copies included: =COUNTIF($C$2:$C$301,TRIM(C2)&"*"). TRIM(C2)&"*" turns the clean name into a pattern that also matches the copies with a space at the end. Select the range in the formula and press F4 (Windows) or ⌘T (Mac) to add the $ signs, then fill down to F301: double-click the fill handle, or select F2:F301 and press Ctrl+D (Windows) / ⌘D (Mac).
  5. 5Compare with the Data tab: Remove Duplicates (Windows: Alt, A, M) deletes rows for good and keeps the first occurrence; it ignores letter case but not spaces, so on column C as typed it would delete 230 rows and still keep 70 names. UNIQUE leaves the export untouched and updates when new orders arrive.

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 G2, use UNIQUE on the customer names in C2:C301, wrapped in TRIM, to list every customer once in the order they first appear; the list spills down column G by itself.
  2. Nicht geprüftIn J2, count how many different customers placed orders — names that differ only by letter case or a trailing space are the same customer.
  3. Nicht geprüftIn F2, count how many orders in C2:C301 belong to the customer in C2 — copies of the name with a trailing space or another letter case count too — then fill the formula down to F301.

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

So lösen Sie die Aufgabe

  • G2=UNIQUE(TRIM(C2:C301))
  • J2=ROWS(UNIQUE(TRIM(C2:C301)))
  • F2=COUNTIF($C$2:$C$301,TRIM(C2)&"*")

UNIQUE returns every distinct value of a range once and spills the result into the cells below, so one formula in G2 produces the whole customer list, in the order the names first appear. It ignores letter case — "oakridge marine" and "Oakridge Marine" are one customer — but not spaces, which is why TRIM inside the range is what folds "Ridgeway Analytics " into "Ridgeway Analytics": 58 customers instead of 70. ROWS around the same UNIQUE turns the list into a count, and COUNTIF with the pattern TRIM(C2)&"*" answers the per-order question: how many rows belong to this customer, stray spaces included.

Pitfall 1: Remove Duplicates (Data tab) is destructive — it deletes rows, keeps the first occurrence and has no live link to the source; UNIQUE is a formula, so a new order appears in the list the moment it is typed. Both ignore letter case; neither trims spaces. Pitfall 2: #SPILL! appears when anything sits in the cells the array needs (here G3:G59); clear the path or move the anchor. Pitfall 3: COUNTIF compares like Remove Duplicates — case-insensitive, space-sensitive — and needs a range as its first argument, so it cannot TRIM the column: =COUNTIF($C$2:$C$301,C2) misses the trailing-space copies and is wrong on 78 rows here. The wildcard pattern TRIM(C2)&"*" fixes that, but it would over-count if one customer's name were the start of another's ("Summit Labs" and "Summit Labs Group" — none here); the exact version is =SUMPRODUCT(--(TRIM($C$2:$C$301)=TRIM(C2))), which trims the whole column in memory and is slower on long lists. Alternatives: =SORT(UNIQUE(TRIM(C2:C301))) for an alphabetical list; =UNIQUE(TRIM(C2:C301),,TRUE) lists only the 8 one-off customers; the pre-365 distinct count =SUMPRODUCT(1/COUNTIF(C2:C301,C2:C301)) cannot trim and returns 70. Version note: UNIQUE, SORT and spilling need Excel 365 or Excel 2021; in Excel 2019 put =TRIM(C2) in a helper column, paste it as values and run Data → Remove Duplicates on a copy. Desktop Excel can refer to the whole spill as G2# (=COUNTA(G2#)); this in-browser grid does not support # yet.

Andere Wege, die funktionieren

  • =COUNTA(G2:G301) — counts the spilled list for J2 and grows with it
  • =SUMPRODUCT(--(TRIM($C$2:$C$301)=TRIM(C2))) — the exact per-order count: compares every trimmed name with this one, no wildcard needed
  • =SORT(UNIQUE(TRIM(C2:C301))) — the same names in alphabetical order (a valid list, but this check compares the first-appearance order)
  • =SUMPRODUCT(1/COUNTIF(C2:C301,C2:C301)) — pre-365 distinct count; returns 70 because it cannot TRIM

Häufige Fehler

Writing =UNIQUE(C2:C301) without TRIM: the list looks right at a glance but holds 70 entries instead of 58 — from G16 on, every name is one row off because "Ridgeway Analytics " is listed again.

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 4
  • Excel test in 7 days, Plan für Stufe 3Tag 4
  • Excel for Data AnalystsTag 5

Ähnliche Übungen

  • Orders over $1,000 in West with FILTERExperten, ~10 Min.
  • Products ranked by sales with SORTBYExperten, ~8 Min.
  • Drop-down list of regions (data validation)Fortgeschrittene, ~7 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Orders over $1,000 in West with FILTER