Microsoft® Excel® 2010 Formulas & Functions Inside Out
by Helmut Reinke Egbert Jeschke Sara Unverhau, Eckehard Pfeifer, Bodo Fienitz, and Jens Bock
SUBSTITUTE()
Syntax. SUBSTITUTE(text,old_text,new_text,instance_num)
Definition. The SUBSTITUTE() function replaces characters or strings with new text.
Arguments
text (required). The text or the reference to a cell containing text in which you want to substitute characters
old_text (required). The string you want to replace
new_text (required). The string you want to replace old_text with
instance_num (optional). Specifies which occurrence of old_text you want to replace with new_text. If you specify instance_num, only that occurrence of old_text is replaced; otherwise, every instance of old_text is replaced.
Background. Use this function to replace a string of text with alternative text. The replacement can be for a single or for multiple instances. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access