FormulaCamp
Completed
← All functions
Text

REPLACE

Replaces text by position.

Syntax

REPLACE(old_text, start_num, num_chars, new_text)

Example: =REPLACE(A2,1,1,"+1")

Available in: All versions

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =REPLACE(A5,1,3,"ID")

Example spreadsheet for REPLACE
ABCD
1TextOtherResult
2Alice Johnsonalice johnsonID-2026-0415
3[email protected][email protected]
4 extra spaces
5SKU-2026-0415
6iced coffee, tea, sugar
7Order 417 shipped
Result in D2: ID-2026-0415
Practice this in a lesson: Find and Replace

More in Text