Applies ToSharePoint Server 구독 버전 SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 Enterprise Microsoft 365의 SharePoint SharePoint Foundation 2010 SharePoint Server 2010 Microsoft 365 Small Business의 SharePoint Windows SharePoint Services 3.0

REPLACE replaces part of a text string, based on the number of characters you specify, with a different text string.

Syntax

REPLACE(old_text,start_num,num_chars,new_text)

Old_text     is text in which you want to replace some characters.

Start_num     is the position of the character in old_text that you want to replace with new_text.

Num_chars     is the number of characters in old_text that you want REPLACE to replace with new_text.

New_text     is the text that will replace characters in old_text.

Examples

Formula

Description (Result)

=REPLACE("abcdefghijk",6,5,"*")

Replaces five characters, starting with the sixth character (abcde*k)

=REPLACE("2009",3,2,"10")

Replaces the last two digits of 2009 with 10 (2010)

=REPLACE("123456",1,3,"@")

Replaces the first three characters with @ (@456)

도움이 더 필요하세요?

더 많은 옵션을 원하세요?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.