Grammar
REPLACE(text,textorreplace,replacetext)
Replaces the specified character string in the original text with a different character string.
Parameter 1
text
Text or referenced cell containing the characters to be replaced
Parameter 2
textorreplace
Specified character string
Parameter 3
replacetext
Text in which the original character string needs to be replaced
The function supports three parameters of any type.
For example, if you want to replace Cold in the Product name column with Flu, as shown in the following figure.
Add a calculation indicator and enter the formula REPLACE(Product name},"Cold","Flu"), as shown in the following figure.
More examples:
REPLACE(old_text,start_num,num_chars,new_text)
Replaces a specified number of characters in a text, with a different character string.
Old_text
Start_num
Starting position of the text where old_text is to be replaced with new_text
Num_chars
Number of characters in old_text to be replaced with new_text
Parameter 4
New_text
The function supports four parameters, among which the first and fourth are of any type, and the second and third are numeric.
Take the data desensitization of telephone numbers as an example.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy