মূল বিষয়বস্তুতে যান
TextIntermediate LevelIntermediate Excel (Lookups & Business Analytics)

How to Use SUBSTITUTE in Excel

Replaces specific text inside a string — clean currency symbols, remove units or swap separators in bulk.

Direct Answer (Quick Summary)

What is SUBSTITUTE in Microsoft Excel?

SUBSTITUTE finds an exact piece of text and swaps it for something else, optionally only on the nth occurrence. Unlike REPLACE, which works by position, SUBSTITUTE works by content, so it survives changes in string length. It is the workhorse for data cleaning and text normalisation.

Pro Tip: SUBSTITUTE is case-sensitive, while SEARCH is not. To replace regardless of case, nest it with UPPER and LOWER, or use a helper column.

Formula Syntax

=SUBSTITUTE(text, old_text, new_text, instance_num)

Arguments Breakdown

ArgumentRequirementPurpose & Details
textRequiredThe original string or cell.
old_textRequiredThe exact characters to find. Case-sensitive.
new_textRequiredWhat to put in its place. Use "" to delete the found text.
instance_numOptionalWhich occurrence to replace. Omit to replace every occurrence.

When to Use SUBSTITUTE (Real-World Business Scenarios)

  • 1

    Stripping currency symbols or units before converting text to numbers.

  • 2

    Swapping one delimiter for another, such as commas to pipes for a CSV export.

  • 3

    Replacing only the second dash in a code so the first one stays intact.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

Raw AmountCleaned
₹1,20,000120000
₹85,00085000
₹12,50012500
Applied Formula:Result: 120000
=VALUE(SUBSTITUTE(SUBSTITUTE(A2,"₹",""),",",""))

How it works: The inner SUBSTITUTE removes the rupee symbol, the outer one removes commas, and VALUE turns the remaining text into a real number that can be summed.

Common Errors & How to Fix Them

Nothing is replaced

Why it happens: The text is case-sensitive, so "Total" will not match "total", or the character is a look-alike such as a non-breaking space.

Fix: Confirm the exact characters with =CODE(MID(A2,n,1)) and match case precisely.

Replaced too much

Why it happens: instance_num was omitted, so every occurrence changed instead of only the target one.

Fix: Pass the occurrence number: =SUBSTITUTE(A2,"-","/",2).

Interactive Formula Lab

Try SUBSTITUTE Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (SUBSTITUTE)

What does the SUBSTITUTE formula do in Excel?

SUBSTITUTE finds an exact piece of text and swaps it for something else, optionally only on the nth occurrence. Unlike REPLACE, which works by position, SUBSTITUTE works by content, so it survives changes in string length. It is the workhorse for data cleaning and text normalisation.

What is the syntax for SUBSTITUTE?
=SUBSTITUTE(text, old_text, new_text, instance_num)
What are common mistakes when using SUBSTITUTE?

Nothing is replaced: The text is case-sensitive, so "Total" will not match "total", or the character is a look-alike such as a non-breaking space. (Confirm the exact characters with =CODE(MID(A2,n,1)) and match case precisely.) Replaced too much: instance_num was omitted, so every occurrence changed instead of only the target one. (Pass the occurrence number: =SUBSTITUTE(A2,"-","/",2).)

Keep building your formula toolkit with these text functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master SUBSTITUTE in Intermediate Excel

Learn SUBSTITUTE along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary