Substitute and Replace in Excel

The Replace formula is used if we want to replace any character by its position. As shown in images below we want to replace element at 6th position.

Substitute formula is used if we want to replace any character by its content. As shown below here we have substituted 2nd dash in cell without space as nothing is mention in second double quotes in substitute formula.

Both are very useful formulas in excel.

substitute and replace formula in excel
1.Substitute and Replace Formula in Excel

Suppose we have Data in Excel as shown below we have to remove last two digits from it then We can use at a place formula with combination with length formula.

=REPLACE(B3,LEN(B3)-2,3,)

Replace formula in excel with combination with len formula
Replace formula with len formula

 

 

By SC