This method will insert new text into the text string in place of the old text that you specify. It’s similar to the Find and Replace function in Excel.
Syntax:
=SUBSTITUTE (text, old_text, new_text, [instance])
Parameter list:
Example :
In the first entry, we changed the name john to vijay.
In the second entry, we perform the same thing, but because the fourth parameter is set to 1, it will only substitute the first occurrence.
Because the SUBSTITUTE function is case sensitive, it will not replace the second occurrence of john in the third item with vijay.
SUBSTITUTE is case sensitive and does not support wildcard characters such as? or *.
Ask Your Query