SUBSTITUTE

SUBSTITUTE text with all occurrences of old replaced by new

Synopsis

SUBSTITUTE(text,old,new,num)

Arguments

text: original text

old: string to be replaced

new: replacement string

num: if num is specified and a number only the numth occurrence of old is replaced

Microsoft Excel Compatibility

This function is Excel compatible.

See also

REPLACE, TRIM.