This Excel tutorial explains how to use the Excel SUBSTITUTE function with syntax and examples.
The Microsoft Excel SUBSTITUTE function replaces a set of characters with another.
The syntax for the SUBSTITUTE function in Microsoft Excel is:
SUBSTITUTE( text, old_text, new_text, [nth_appearance] )
The SUBSTITUTE function can be used in the following versions of Microsoft Excel:
The SUBSTITUTE function can be used in Microsoft Excel as the following type of function:
Let's look at some Excel SUBSTITUTE function examples and explore how to use the SUBSTITUTE function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following SUBSTITUTE examples would return:
=SUBSTITUTE(A1, "bet", "con", 1) Result: "Alphacon soup" =SUBSTITUTE(A2, "t", "4", 2) Result: "techon4henet.com" =SUBSTITUTE(A2, "t", "4") Result: "4echon4hene4.com"
(scroll to see more)