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.
Step-by-step instructions
How to substitute replace text — 3 steps
Reference the cell containing the text you want to modify.
Enter the exact text you want to find as the second argument — it is case-sensitive.
Enter the replacement text as the third argument. Use an empty string to delete the found text.
Example data
Worked example
| Raw Phone | Cleaned Phone |
|---|---|
| 555-867-5309 | 5558675309 |
| 555-212-0000 | 5552120000 |
| 555-100-9999 | 5551009999 |
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.
Describe your exact spreadsheet problem — get the formula in seconds.
Open AI Formula Generator — FreeRelated how-to guides