Convert your text instructions into Excel formulas, or get explanations for existing formulas.
Convert your text instructions into formulas or input a formula to have it explained.
Edit Excel online by chatting with AI
Convert your text instructions into SQL queries - powered by AI.
Generate Excel VBA (Visual Basic for Applications) code to automate tasks and create custom solutions within Microsoft Excel.
Upload your Excel file and generate beautiful charts with our AI-powered chart generator.
Convert your text into beautiful mind maps with our AI-powered mind map generator. Edit and customize your mind maps easily.
Use AI to intelligently generate and explain regular expressions, supporting various text pattern matching and data validation.
Generate beautiful images from text descriptions using AI, with multiple sizes. Free!
The SUBSTITUTE function in Excel is used to replace specific text in a string. It is case-sensitive and allows you to specify which occurrence of the text to replace. The syntax is:
=SUBSTITUTE(text, old_text, new_text, [instance_num])
Example 1: Replace all occurrences of “apple” with “orange” in the text “apple, banana, apple, grape”:
=SUBSTITUTE("apple, banana, apple, grape", "apple", "orange")
Result: “orange, banana, orange, grape”
Example 2: Replace only the second occurrence of “apple” with “orange”:
=SUBSTITUTE("apple, banana, apple, grape", "apple", "orange", 2)
Result: “apple, banana, orange, grape”
This function is useful for cleaning data or modifying text strings dynamically.