Remove extra spaces with TRIM
Part of the full Google Sheets course
Find the invisible spaces that break lookups and hide duplicates, and clean them with TRIM in a helper column.
- 10steps
- 9minutes
- 1cheat sheet
Lessons run in your browser on a laptop or desktop.
In this lesson
10 steps, about 9 minutes in a practice Google Sheets. Each step is checked the moment you do it.
- Prove that two names that look alike hold different text.
- Count characters to catch a space hiding at the start or end of a name.
- Clean the extra spaces out of a whole column of names with one formula.
- Fix lookups that fail because of spaces you can't see.
The steps
How the lesson goes.
- 10 steps: 4 explain the idea, 5 you do yourself and 1 asks a question. Then your turn: the same job on your own.
- Cheat sheet: Remove extra spaces with TRIMWith the course
Also in Text
13 lessons in this skill. The Roadmap puts them in order.
Where it sits
Its skill, its stage on the Roadmap and the paths it's in.
Get this lesson and 214 more.
Remove extra spaces with TRIM is one of 13 lessons in Text, and one of 215 in the course.
- All 215 lessons, from Beginner to Analyst
- Every step checked, with hints and Show me when you're stuck
- A cheat sheet for every lesson you finish
From the free lesson "Your first pivot table."

No account needed to pay. Payments are handled by Link, Stripe's checkout. Your card statement shows LINK.COM.
30-day money-back guarantee (fewer than 10 paid lessons opened)
Already have the course? Sign in
Try a free lesson first.
5 lessons are free, with no sign-up, in a practice Google Sheets. Your progress in them comes with you when you buy.
Why your formula broke when you copied it
Lock a cell with $ so a formula keeps working when you copy it down.
Free lesson 1 of 5 · 7 min
Start the lessonRemove duplicates
Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.
Free lesson 2 of 5 · 9 min
Start the lessonMake a dropdown list
Give a column a dropdown of fixed choices, pick from it, and stop anything else from being typed.
Free lesson 3 of 5 · 7 min
Start the lessonYour first pivot table
Turn 200 rows of sales into totals by region, read the answer, and re-ask the question by rep or product.
Free lesson 4 of 5 · 10 min
Start the lessonLook up a price with VLOOKUP and XLOOKUP
Bring each order's price over from a price list with VLOOKUP or XLOOKUP, and avoid the missing-FALSE trap.
Free lesson 5 of 5 · 11 min
Start the lesson