replace character in string in excel code example Example: excel replace character =SUBSTITUTE(text,old,new)