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. Text functions

TRIM and PROPER practice: clean 120 customer names typed by hand

  • Fortgeschrittene
  • ~6 Min.
  • Text functions

Übungstext auf Englisch

120 customers typed their own names into the web-shop checkout, and the export shows it: 69 names carry spaces before or after, 51 have two or three spaces between first and last name, and 101 are all lower case, ALL CAPS or randomly capitalised. B2 alone reads "··JEAN-LUC··JACKSON·" (· marks a space). Produce a clean "First Last" version of every name in C2:C121 — single spaces, capital first letters — ready for the mailing labels.

Ihre Aufgabe

  1. 1Click C2 and type =TRIM(B2): TRIM removes the spaces before and after the text and squeezes every run of spaces inside it to a single space. C2 now shows "JEAN-LUC JACKSON".
  2. 2Wrap it in PROPER: =PROPER(TRIM(B2)). PROPER capitalises the first letter of each word and lower-cases the rest — C2 reads Jean-Luc Jackson.
  3. 3Fill C2 down to C121 (double-click the fill handle, or select C2:C121 and press Ctrl+D on Windows / ⌘D on Mac).
  4. 4Check a few rows with punctuation, e.g. Hugo O'Neil (row 66) and Jean-Luc Jackson (row 2): the letter after an apostrophe or a hyphen is capitalised too — that is how PROPER works.

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 C2, clean the name in B2 with TRIM and PROPER — remove the extra spaces and capitalise each word — then fill down to C121.

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 6 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.

So lösen Sie die Aufgabe

  • C2=PROPER(TRIM(B2))

TRIM removes all spaces from a text except single spaces between words: leading and trailing spaces disappear and "JEAN-LUC···JACKSON" becomes "JEAN-LUC·JACKSON". PROPER then capitalises the first letter of every word and makes all other letters lower case, so lower-case, ALL-CAPS and randomly cased entries all end up as "First Last". Nesting them — PROPER(TRIM(B2)) — applies both fixes in one cell, and the check is strict about case: "jean-luc jackson" would not count.

Pitfall 1: PROPER alone leaves the doubled inner spaces, and the grader compares the text exactly — 51 of the 120 rows would fail; TRIM alone leaves the wrong case. Both are needed. Pitfall 2: PROPER capitalises after every non-letter, so "o'neil" becomes O'Neil (fine) but "mcdonald" becomes Mcdonald and "iPhone" becomes Iphone — review names with internal capitals by hand or fix them with SUBSTITUTE. Pitfall 3: TRIM only removes the normal space, CHAR(32). Web forms and copied web pages often contain the non-breaking space CHAR(160), which TRIM ignores in Excel; use TRIM(SUBSTITUTE(B2,CHAR(160)," ")) for those, and CLEAN for line breaks and other non-printing characters. Flash Fill (Ctrl+E) or Text to Columns can fix one export quickly but leave static values; the formula keeps cleaning new rows. To compare cleaned names with another list safely, also apply LOWER or use EXACT only after both sides are cleaned the same way.

Andere Wege, die funktionieren

  • =TRIM(PROPER(B2)) — same result, functions nested the other way round
  • =PROPER(TRIM(SUBSTITUTE(B2,CHAR(160)," "))) — also handles non-breaking spaces from web forms
  • =PROPER(TRIM(CLEAN(B2))) — additionally strips line breaks and other non-printing characters

Häufige Fehler

Using PROPER without TRIM: =PROPER(B2) returns "··Jean-Luc··Jackson·" (· marks a space) — capitalised, but with the padding and the doubled space still 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 4
  • Excel test in 7 days, Plan für Stufe 3Tag 3
  • Excel for Data AnalystsTag 5

Ähnliche Übungen

  • Full name with CONCAT or &Anfänger, ~4 Min.
  • Split email into user and domain (FIND/LEFT/RIGHT or TEXTBEFORE/TEXTAFTER)Fortgeschrittene, ~7 Min.
  • Turn text dates into real dates and group by monthExperten, ~12 Min.

Funktionsreferenz

Offizielle Dokumentation

Nächste Übung

Combine tags per product with TEXTJOIN