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

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."

The practice Google Sheets with a free lesson's step panel beside it.
Pick a course

US$149

Tax included · Lifetime access · About 69¢ a lesson

Get the full course · US$149

US$198

Tax included · Lifetime access · About 46¢ a lesson

Get both courses · US$198

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)

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.