Skip to main content
Version: Streamsheets 3.0

REPLACE

Replaces part of a string value, based on the number of specified characters, with a different text.

Syntax

=REPLACE(OldText, StartAt, NumChars, NewText)

Arguments

NameTypeDescription
OldTextStringString in which to replace characters.
StartAtNumberCharacter position in OldText at which replace starts.
NumCharsNumberNumber of characters from StartAt to be replaced by NewText.
NewTextStringThe text which will replace specified characters in OldText.

Return

TypeDescription
StringThe replaced Text.

Examples

FormulaResultComment
=REPLACE("Replace me now", 12, 3, "later")
"Replace me later"