REPLACE
Change the characters at a particular position to new text.
Syntax
=REPLACE(old_text, start_num, num_chars, new_text)Worked example
Change the final three characters of the lot number.
=REPLACE("LOT201",4,3,"875")Result LOT875
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceHow to Use the REPLACE Function in Excel
Practice REPLACE
Change the final three characters of the lot number.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
Show example formula
=REPLACE(B2,B3,B4,B5) Lesson quiz
Answer three questions to see your level in this lesson.
