Find and Replace Text With SUBSTITUTE
Every phone number in the export has dashes, half the SKUs use the wrong separator, and manual Find & Replace means redoing the cleanup every time a new export lands.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
SUBSTITUTE scans the text in A2 for every occurrence of the first string and swaps in the second — replacing a dash with nothing simply deletes all the dashes. Because it's a formula, the cleanup re-runs itself whenever fresh data is pasted in, which is what makes it better than one-off Find & Replace for recurring exports. An optional fourth argument targets a single occurrence: =SUBSTITUTE(A2,"-","/",2) changes only the second dash and leaves the rest alone. It matches by text, unlike its sibling REPLACE, which overwrites by character position — use REPLACE when you know where, SUBSTITUTE when you know what. And you can nest one inside another to make several swaps in one cell: =SUBSTITUTE(SUBSTITUTE(A2,"$",""),",","") strips both the currency symbol and the thousands comma.
When to use it
Use it to strip dashes or spaces out of phone numbers and SKUs before matching them, swap separators in product codes, or remove currency symbols and thousands commas from amounts stored as text.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08