Excel REPLACE Function

Summary

The Excel REPLACE function replaces characters specified by location in a given text string with another text string. For example =REPLACE("XYZ123",4,3,"456") returns "XYZ456".

Purpose

Replace text based on location

Return value

The altered text.

Syntax

=REPLACE (old_text, start_num, num_chars, new_text)

Arguments

Usage notes

 

Excel REPLACE Function

Summary

The Excel REPLACE function replaces characters specified by location in a given text string with another text string. For example =REPLACE("XYZ123",4,3,"456") returns "XYZ456".

Purpose

Replace text based on location

Return value

The altered text.

Syntax

=REPLACE (old_text, start_num, num_chars, new_text)

Arguments

Usage notes