SUBSTITUTE
replaces old text with new text · from excel · excel: not yet compared · sheets: not yet compared
signature
SUBSTITUTE(text, old_text, new_text, [instance_num])
returns: text
| argument | required |
|---|---|
| text | required |
| old_text | required |
| new_text | required |
| instance_num | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=SUBSTITUTE("Sales Data", "Sales", "Cost") Cost Data