SUBSTITUTE and REPLACE

Rewrite part of a text with SUBSTITUTE when you know what to change, or with REPLACE when you know where it is.

Confident · 11 min · 12 steps

In this lesson

  • =SUBSTITUTE(text_to_search, search_for, replace_with) replaces every match.
  • =REPLACE(text, position, length, new_text) replaces characters by position: =REPLACE(B2,1,7,"***-***").
  • SUBSTITUTE when you know the text, REPLACE when you know where it is.

Try a free lesson first

Remove duplicates

Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.

Confident · 9 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/BV7C

This lesson is in the full Google Sheets course

US$149 once

Tax included. New lessons are added as they're written.

Get the full course, US$149

30-day money-back guarantee if you've opened fewer than 10 paid lessons.

  • All 215 Google Sheets lessons open today, and every new one as it's written.
  • The Roadmap, Skills and all seven paths.
  • A cheat sheet for every lesson you finish.

Already have the course? Sign in

Skill
Text
Stage
Confident

Where it sits in Text 13 lessons

And 3 more, up to Pattern matching with regular expressions. See the whole skill

The steps

12 steps: 4 explanations, 6 Do this, 2 questions, then Your turn.

Try a free lesson first

Remove duplicates

Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.

Confident · 9 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/BV7C