FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to substitute replace text in Excel

Remove dashes from phone numbers, replace a misspelled product name across a column, or swap a delimiter character.

beginnerText ManipulationSUBSTITUTE reference

Step-by-step instructions

How to substitute replace text3 steps

1

Reference the cell containing the text you want to modify.

2

Enter the exact text you want to find as the second argument — it is case-sensitive.

3

Enter the replacement text as the third argument. Use an empty string to delete the found text.

Example data

Worked example

Raw PhoneCleaned Phone
555-867-53095558675309
555-212-00005552120000
555-100-99995551009999

Common mistakes

Errors to watch out for

SUBSTITUTE is case-sensitive

SUBSTITUTE("Hello","hello","Hi") returns "Hello" unchanged because the capitalisation does not match. Match the exact case or use LOWER/UPPER first.

Only want to replace the first occurrence

Add a fourth argument of 1 to replace only the first match — for example, SUBSTITUTE(A2,"o","0",1).

FAQ

Frequently asked questions

How is SUBSTITUTE different from REPLACE?

SUBSTITUTE finds specific text regardless of position. REPLACE operates on a fixed character position and length regardless of content.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.