REPLACEB

replaces characters by byte position · from excel · excel: not yet compared · sheets: not yet compared

signature

REPLACEB(old_text, start_num, num_bytes, new_text)

returns: text

argumentrequired
old_text required
start_num required
num_bytes 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 =REPLACEB("text", 3, 4, "text") tetext

related

  • ASC converts full-width characters to half-width
  • BAHTTEXT spells a number as thai baht and satang
  • CHAR returns the character for a character-set code
  • CLEAN removes non-printable characters
  • CODE numeric code of the first character
  • CONCAT joins multiple text strings into one