Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
REPLACE substitutes a specified number of characters at a defined position in a string with new text, making it position-based rather than content-based. Use it when you know exactly where in a string a change needs to occur, such as updating a date code embedded at a fixed position in a product SKU.
=REPLACE(A2,1,3,"NEW")=REPLACE(A2,1,3,"NEW")Computed by a real spreadsheet engine on the sample data below.
| ProductCode |
| OLDWGT001 |
| OLDGDG002 |
| OLDDOH003 |
| OLDTHG004 |
=REPLACE(A2,1,3,"NEW")→NEWWGT001
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Replace the first three characters of each product code with a new prefix”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: