REPLACEB Function
Replace part of a text, given by its position in bytes. The four arguments are those of REPLACE: the text, the position of the first byte to replace, the number of bytes to replace and the text to insert. TX Sheet Control counts every character as one byte, including double-byte characters such as Japanese, so REPLACEB returns the same as REPLACE. A start position less than 1 or a negative number of bytes returns #VALUE!.
Syntax
REPLACEB(text, argument1, argument2)
Category: Text. Minimum arguments: 4. Maximum arguments: 4.
Available for supported offline calculation.
Examples
=REPLACEB("abc",2,1,"X")
The formula returns aXc.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.