Description

SUBSTITUTE is a text function in Excel, use it to replace one or more characters from a text string. Having four arguments, first three are mandatory and last one is optional. First one is text from which you want to replace the character(s). Second is old_text, the text you want to replace, then new_text, the text by which you want the replace. Last is instance_num, you can specify which occurrence of old_text you want to replace, if omitted all occurrence of old_text will be replaced with new_text. Use it if you know the text to be replaced, but not sure about position of the text.

Syntax

SUBSTITUTE(text, old_text, new_text, [instance_num])

Example

  1. SUBSTITUTE Excel function replaces the text string with new text string as specified
  2. SUBSTITUTE replaces all instances of old text if last argument is missing
  3. SUBSTITUTE is case sensitive; hence, not replaced anything
  4. SUBSTITUTE replaces only first instance of the text as specified in last argument

0 Comments

By Rajesh K Saraogi

Rajesh is a hardcore finance person with a penchant for latest technology. His passions are latest technology and to improve the productivity with simple, yet powerful software – mainly on Microsoft Excel platform. He is a qualified MCA. Whenever he gets time he loves to blog, to share the knowledge, which is the only thing which increases after sharing!