EXCEL SUBSTITUTE FUNCTION

This method will insert new text into the text string in place of the old text that you specify. It’s similar to the Find and Replace function in Excel.

Syntax:

=SUBSTITUTE (text, old_text, new_text, [instance])

Parameter list:

  • text – The text to be modified.
  • old text – The text that should be replaced.
  • new_text – The text to be replaced.
  • instance – If instance is not given, all occurrences of old text are replaced with new text.

Step By Step Guide of SUBSTITUTE Function

Example :

In the first entry, we changed the name john to vijay.
In the second entry, we perform the same thing, but because the fourth parameter is set to 1, it will only substitute the first occurrence.
Because the SUBSTITUTE function is case sensitive, it will not replace the second occurrence of john in the third item with vijay.

SUBSTITUTE is case sensitive and does not support wildcard characters such as? or *.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now