Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

REPLACE replaces part of a text string, based on the number of characters you specify, with a different text string.



Old_text     is text in which you want to replace some characters.

Start_num     is the position of the character in old_text that you want to replace with new_text.

Num_chars     is the number of characters in old_text that you want REPLACE to replace with new_text.

New_text     is the text that will replace characters in old_text.



Description (Result)


Replaces five characters, starting with the sixth character (abcde*k)


Replaces the last two digits of 2009 with 10 (2010)


Replaces the first three characters with @ (@456)

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!