REPLACE Function in Excel: Syntax, Examples & Practice
Learn the Excel REPLACE function: Replaces characters by position. Try focused practice and download a free workbook.
Syntax
=REPLACE(old_text, start_num, num_chars, new_text)
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Worked example
| Row | A: Customer name | B: Code | C: Raw text |
|---|---|---|---|
| 2 | amit kumar | MH-10245 | Mumbai - Active |
| 3 | Priya Shah | MH-20418 | Pune - Active |
| 4 | Ravi Patil | MH-33021 | Nashik - Closed |
=REPLACE(B2,1,3,"MH")
Expected result: MH10245
The original text is shown beside the fields that REPLACE will inspect, clean or transform.
Professional use
Standardize fixed-format IDs.
Practice REPLACE · Download practice .xlsx
Apply your skills
Explore MIS and finance projects
Questions and answers
How can I practise REPLACE?
Use the focused ten-question REPLACE lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.
Which Excel version supports REPLACE?
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Does the browser simulator replace Microsoft Excel?
No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.
Interactive practice runs in your browser.