Substitute()
Category: Text
Syntax: Substitute ( text; searchString; replaceString )  | 
Parameters:
textAny text string or expression that returns a text string.
searchStringAny text string or expression that returns a text string.
replaceStringAny text string or expression that returns a text string.
Data type returned: Text
Description:
Returns a text string in which all instances of searchString in the text parameter are replaced with the replaceString.
Multiple substitutions may occur in the same Substitute() function:
Substitute ("This is a test"; ["i"; "q"]; ["s"; "$"])
returns Thq$ q$ a te$t.
The Substitute() function is case sensitive.
Examples:
Function  | Results  | 
|---|---|
Substitute ("Happy Anniversary!"; "Anniversary"; "Birthday")  | Returns Happy Birthday!.  | 
Substitute ("This is a test"; "i"; "q")  | Returns Thqs qs a test.  | 
  
  
  Категории