What Does It Do?


This function will allow you to find and replace a piece of text within a text string. You can either replace all occurrences of the piece of text or just a particular instance of it.




SUBSTITUTE(Text, Find, Replace, Instance)

  • Text (required) – This is the text you are going to search.
  • Find (required) – This is the piece of text you want to find.
  • Replace (required) – This is the piece of text you want to replace it with.
  • Instance (optional) – This is the instance number of the text you want to find and replace. If nothing is entered the function will replace all instances of the text you’re trying to find.




In this example we replace certain parts of the text string “What did he say he did?”. In the first example we replace all instances of the word “he” with “I”. In the second example we replace the second instance of the word “did” with “ate”. Note that text is case sensitive, in the last example the function does not replace “What” with “Ninja” because the “W” is capitalised.





Get The Example Workbook

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.


Subscribe for awesome Microsoft Excel videos 😃

John MacDougall

I’m John, and my goal is to help you Excel!

You’ll find a ton of awesome tips, tricks, tutorials, and templates here to help you save time and effort in your work.

Related Posts

LOWER function

This function will convert text to all lower case letters. Syntax LOWER(Text)...

read more



Get the Latest Microsoft Excel Tips

Follow Us

Follow us to stay up to date with the latest in Microsoft Excel!

Subscribe for awesome Microsoft Excel videos 😃