REPLACE
replaces characters by position · from excel · excel: not yet compared · sheets: not yet compared
signature
REPLACE(old_text, start_num, num_chars, new_text)
returns: text
| argument | required |
|---|---|
| old_text | required |
| start_num | required |
| num_chars | required |
| new_text | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=REPLACE("text", 3, 4, "text") tetext