SUBSTITUTE(text, old_text, new_text, [instance])
=SUBSTITUTE("952-455-7865","-","")
The SUBSTITUTE function can be used to replace one set of characters with another set of characters in a string. For example, using the formula above will replace the hyphen with nothing, returning "9524557865".
SUBSTITUTE(B5,"t","b")
The SUBSTITUTE function can also be used to replace one character with another character in a string. For example, using the formula will replace all occurrences of the letter t with the letter b.
=SUBSTITUTE(B6,"t","b",1)
The SUBSTITUTE function can also be used to replace the first occurrence of a character with another character in a string. For example, using the formula above will replace the first occurrence of the letter t with the letter b.
SUBSTITUTE(B7,"cat","dog")
The SUBSTITUTE function can also be used to replace a word or phrase with another word or phrase in a string. For example, using this formula will replace cat with dog.
The SUBSTITUTE and REPLACE functions both replace text in strings. SUBSTITUTE is useful for specific text replacements, while REPLACE is useful for replacing any text in a specific location.