The Excel REPLACE Function
Basic DescriptionThe Excel REPLACE function replaces all or part of a text string with another string. The format of the function is : REPLACE( Old_text, Start_num, Num_Chars, New_text )
Where the arguments are as follows :
The Excel Replace function is similar to the Excel Substitute Function, but the Replace function replaces text in a specified position of a supplied string, while the Substitute function replaces one or more instances of a given text string. Note that the Excel Replace Function is not suitable for languages that use the double-byte character set (eg. Chinese, Japanese, Korean). These languages should use the ReplaceB function, which is explained on the official Microsoft website ExampleThe following spreadsheets show examples of use of the Excel Replace Function. The spreadsheet on the left shows the format of the functions and the spreadsheet on the right shows the results.
|
|||||||||||||||||
|
|
|||||||||||||||||
Copyright © 2008-2010 ExcelFunctions.net |