How do I use SUBSTITUTE in Excel?
Use SUBSTITUTE when you want to replace specific text values. Enter Text, Old text, New text in that order, then add optional arguments when needed.
Substitutes occurrences of text with new text.
SUBSTITUTE(text, old_text, new_text, [instance_num])text
RequiredEnter a text value (wrap with quotes when needed).
old_text
RequiredEnter a text value (wrap with quotes when needed).
new_text
RequiredEnter a text value (wrap with quotes when needed).
instance_num
OptionalEnter a numeric value.
Use SUBSTITUTE to return the result with these settings (Text: B2 (cell B2 (Name in column B)), Old text: " ", New text: "", Instance number: 1).
| # | AEmployee ID | BName | CEmail | DPayment Amount | EAmount Text |
|---|---|---|---|---|---|
| 2 | E001 | Taro Tanaka | t.tanaka@example.com | 1200 | 1200 |
| 3 | E002 | Hanako Suzuki | h.suzuki@example.com | 980 | 980 |
| 4 | E003 | Ken Sato | k.sato@example.com | 2450 | 2450 |
| 5 | E004 | Aya Takahashi | a.takahashi@example.com | 3000 | 3000 |
| 6 | |||||
| 7 | |||||
| 8 |
How to Use (Formula)
=SUBSTITUTE(B2, " ", "", 1)Result
TaroTanaka
Use SUBSTITUTE when you want to replace specific text values. Enter Text, Old text, New text in that order, then add optional arguments when needed.
Use the "Start Function Practice" button to jump straight into SUBSTITUTE drills.
The main arguments are Text, Old text, New text, Instance number. Start with the required ones, then add optional arguments if needed.