0 of 62
Text·Lesson 40 of 62Pro

How to use SUBSTITUTE in Google Sheets

Replace text

How SUBSTITUTE works

SUBSTITUTE replaces every copy of some text with something else.

SUBSTITUTE(text, find, replace with)
Example on this data
=SUBSTITUTE(B2,"acme","example")→maria.lopez@example.com

Swaps the company name in the email.

What you’ll do

You’ll swap every dash in a SKU for a space. Replacing text is useful for cleaning data or reformatting codes.

Try it

Type =SUBSTITUTE(B2,"acme","example") into G2 and press Enter. Watch what the sheet does.

The result will appear in G2.

G2
ABCDEFG
1Full nameEmailSKUNote
2 maria lopez maria.lopez@acme.comWID-2041-BLUCall back 555-0142
3james chenjchen@northwind.ioGAD-1180-REDSent invoice
4Priya Shahpriya@shahdesign.coWID-3307-GRNCall back 555-0199
5tom o'neiltom.oneil@acme.comBOX-0042-BLULeft voicemail
6Lena Park lena.park@globex.comGAD-2215-BLKCall back 555-0107
7sam reedsreed@northwind.ioWID-0918-REDMeeting Tue
Ctrl+/ shows the shortcuts