Excel SUBSTITUTE Function

Summary

The Excel SUBSTITUTE function replaces text in a given string by matching. For example =SUBSTITUTE("952-455-7865","-","") returns "9524557865"; the dash is stripped. SUBSTITUTE is case-sensitive and does not support wildcards.

Purpose

Replace text based on content

Return value

The altered text.

Syntax

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

Arguments

Usage notes

Use the SUBSTITUTE function when you want to replace text based on its content, not position.

 

Excel SUBSTITUTE Function

Summary

The Excel SUBSTITUTE function replaces text in a given string by matching. For example =SUBSTITUTE("952-455-7865","-","") returns "9524557865"; the dash is stripped. SUBSTITUTE is case-sensitive and does not support wildcards.

Purpose

Replace text based on content

Return value

The altered text.

Syntax

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

Arguments

Usage notes

Use the SUBSTITUTE function when you want to replace text based on its content, not position.