Cleaning text with TRIM, UPPER and PROPER
A text function that returns a tidy copy of the text in A2 with extra spaces removed. UPPER, LOWER and PROPER work the same way to fix capitals, e.g. =PROPER(A2) gives Mia Chen.
Understanding Cleaning text with TRIM, UPPER and PROPER in VCE Spreadsheets, SQL & Visualisation
What it does: LOWER converts all letters to lower case, which makes text consistent for sorting, filtering and comparing. TRIM removes extra spaces at the start and end and between words. PROPER only changes capitals, so the spaces would stay. Text functions return a new value in the cell holding the formula. The original data in A2 stays the same, which is why you often copy and paste the results as values. LOWER turns every letter into a small letter. UPPER does the opposite and makes every letter a capital. A spreadsheet function needs brackets around the cell reference, like =TRIM(C5). Without them the formula gives an error.
Common mistakes: TRIM needs its input inside round brackets. It should be =PROPER(TRIM(A2)). The spreadsheet function is called UPPER, not UPPERCASE. Using the wrong name gives a #NAME? error. It should be =UPPER(A2).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 21–34) and word search (Modules 4–34).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
=TRIM(A2)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →