Replaces part of a text string with another given text string.
Syntax
original_text: The text, part of which you want to replace. E.g. "Mick Foyd"
start_position: The position where the replacement should begin. E.g. 6
length: Length of the text to replace. E.g. 4
Remarks
Alternatively, you can also use the Replace option under the Insert menu.
Examples
|
Formula |
Result |
|
=REPLACE("Mick Foyd";6;4;"Floyd") |
Mick Floyd |
|
=REPLACE("abc2mail.com";4;1;"@") |
|
|
=REPLACE(2020;4;1;1) |
2021 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions