Find and Replace vs SUBSTITUTE: Which Should You Use?
By ExcelReady TeamUpdated 8 min read
The short answer
Use Find and Replace (Ctrl+H, Mac: Control+H) for a one-off fix you want written straight into the cells, across a sheet or workbook, with wildcards, or inside formulas. Use SUBSTITUTE when you must keep the original, when new data needs the same fix, when only the second or third match should change, or when a test wants a formula.
Key takeaways
- Find and Replace overwrites the original cells; SUBSTITUTE leaves them alone and puts the result in a new cell.
- SUBSTITUTE is always case-sensitive. Find and Replace ignores case unless you tick Match case.
- In Find and Replace, * and ? are wildcards, so search for ~* to find a real asterisk. SUBSTITUTE has no wildcards.
- SUBSTITUTE always returns text. Wrap it in VALUE when the result should be a number you can add up.
- Only SUBSTITUTE can change just the 2nd or 3rd occurrence inside a cell, using its instance_num argument.
On this page+
Find and Replace vs SUBSTITUTE comes down to one question: should the original data change? Find and Replace (Ctrl+H, Mac: Control+H) rewrites the cells themselves, once. SUBSTITUTE is a formula that shows a cleaned copy in another cell and keeps the original. This guide runs both on the same messy product list, so you can see exactly where each one wins and where each one quietly gets it wrong.
Find and Replace vs SUBSTITUTE at a glance#
Both swap one piece of text for another. Almost everything else about them is different.
| Feature | Find and Replace | SUBSTITUTE |
|---|---|---|
| What it is | A dialog box: Home > Find & Select > Replace | A worksheet function: =SUBSTITUTE(text, old_text, new_text, [instance_num]) |
| Original data | Overwritten (Undo is your only way back) | Kept; the result appears in another cell |
| Case | Ignored, unless you tick Match case | Always case-sensitive |
| Wildcards | * any characters, ? one character, ~ to escape | None: * and ? are normal characters |
| Which matches change | Every match in the searched cells | Every match, or only the nth one with instance_num |
| Whole-cell match | Match entire cell contents option | No option; it always works inside the text |
| Reach | Selection, sheet or whole workbook | One cell (or a spilled range in Microsoft 365) |
| Inside formulas | Yes, it searches and changes formula text | No, it works on the value it's given |
| New data later | You must run it again | Updates automatically |
| Result type | Excel re-reads the cell, so 2.5 becomes a number | Always text |
The same product list, cleaned both ways#
Here's a small export from a supplier in A1:B7. Codes should start with BLACK, not BLK. The weights are text because of the " kg" unit. The asterisk on row 5 marks a discontinued item.
| A | B | |
|---|---|---|
| 1 | Item code | Weight |
| 2 | BLK-104-S | 2.5 kg |
| 3 | blk-105-M | 1 kg |
| 4 | BLK-106-L | 12 kg |
| 5 | RED-107-S* | 0.75 kg |
| 6 | BLK-108-XL | 3 kg |
| 7 | RED-109-M | 1.25 kg |
Job 1: rename BLK to BLACK#
With A2:A7 selected, press Ctrl+H (Mac: Control+H), find BLK and replace with BLACK. For the formula version, type =SUBSTITUTE(A2,"BLK","BLACK") in C2 and fill down with Ctrl+D (Mac: ⌘D).
| Original | Replace All, Match case off | Replace All, Match case on | =SUBSTITUTE(A2,"BLK","BLACK") |
|---|---|---|---|
| BLK-104-S | BLACK-104-S | BLACK-104-S | BLACK-104-S |
| blk-105-M | BLACK-105-M | blk-105-M | blk-105-M |
| BLK-106-L | BLACK-106-L | BLACK-106-L | BLACK-106-L |
| RED-107-S* | RED-107-S* | RED-107-S* | RED-107-S* |
| BLK-108-XL | BLACK-108-XL | BLACK-108-XL | BLACK-108-XL |
| RED-109-M | RED-109-M | RED-109-M | RED-109-M |
Find and Replace with its default settings makes 4 replacements, including the lower-case "blk". SUBSTITUTE behaves like Match case on: it misses row 3. If you want SUBSTITUTE to catch every spelling, standardise the case first: =SUBSTITUTE(UPPER(A2),"BLK","BLACK") turns "blk-105-M" into BLACK-105-M.
Job 2: strip " kg" and add up the weights#
Run Find and Replace on B2:B7: find kg (with the leading space) and replace with nothing. The cells now hold 2.5, 1, 12, 0.75, 3 and 1.25 as real numbers, and =SUM(B2:B7) returns 20.5. Excel re-reads each changed cell as if you had typed it. The exception is a column formatted as Text, where the results stay text.
SUBSTITUTE does not do this. =SUBSTITUTE(B2," kg","") returns the text "2.5", aligned to the left. Fill it down and =SUM(C2:C7) returns 0, because SUM skips text. Wrap it in VALUE instead:
=VALUE(SUBSTITUTE(B2," kg",""))Now each row is a number and the total is 20.5. In Microsoft 365 you can even do the whole column in one cell: =SUM(VALUE(SUBSTITUTE(B2:B7," kg",""))) also returns 20.5.
Job 3: remove the asterisk#
This is where Find and Replace bites. In the Find what box, * is a wildcard meaning "any characters". Find *, replace with nothing, click Replace All on A2:A7, and every one of the six cells is emptied. Press Ctrl+Z (Mac: ⌘Z) at once. Search for ~* instead: the tilde tells Excel you mean a real asterisk, and only row 5 changes, to RED-107-S.
SUBSTITUTE has no wildcards, so =SUBSTITUTE(A5,"*","") simply removes the asterisk and returns RED-107-S. The flip side: SUBSTITUTE can't match a pattern. Find and Replace can, for example finding (*) to remove any note in brackets, whatever it says.
Job 4: change only the second hyphen#
Find and Replace changes every match in a cell. SUBSTITUTE's optional fourth argument picks one:
=SUBSTITUTE(A2,"-"," size ",2)This returns BLK-104 size S: the first hyphen stays, the second is replaced. SUBSTITUTE also works as a building block inside bigger formulas. =LEN(A2)-LEN(SUBSTITUTE(A2,"-","")) counts the hyphens in a code and returns 2.
When to use Find and Replace#
Use Find and Replace when the fix is a one-off and you want the result to be the data.
- You own the file and the old values are wrong. Renaming BLK to BLACK in your own list doesn't need a helper column.
- The change spans sheets. Set Within to Workbook under Options >> to fix every tab in one go.
- You need a pattern. Wildcards handle "anything in brackets" or "any code starting with RED-".
- You want to change formulas. Replace searches the text of formulas, so it can rewrite a sheet name or a cell reference in hundreds of formulas. Our guide to Find and Replace in Excel walks through that.
- You want numbers back. Stripping a unit or a currency code with Replace leaves real numbers, with no VALUE needed.
One detail to know: on the Replace tab, Excel searches what is typed in each cell (the formula), not the result you see. A cell showing "BLK-104-S" because it holds =A2 is not itself changed. It only shows the new text because A2 changed.
When to use SUBSTITUTE#
Use SUBSTITUTE when you need to keep the raw data, repeat the fix, or be precise.
- The source must stay untouched. Keeping the supplier's original codes next to the cleaned ones makes your work easy to check.
- New data keeps arriving. Paste next week's export into columns A and B, and the formulas clean it instantly. Find and Replace would have to be run again by hand.
- Case matters. If "BLK" is a colour code but "blk" means something else in your data, SUBSTITUTE's case-sensitivity is a feature.
- Only one occurrence should change.
instance_numtargets the 1st, 2nd or 3rd match. - The fix is one step of a bigger formula. SUBSTITUTE nests inside TRIM, VALUE, LEN and others.
If you're choosing between SUBSTITUTE and its sister function, see SUBSTITUTE vs REPLACE: REPLACE works by position, not by matching text. The SUBSTITUTE and REPLACE guide has more formula examples.
What a job test usually checks#
Practical Excel tests often grade a formula in a named cell. If the task says "in C2, return the code with BLK replaced by BLACK", running Find and Replace on column A gives the checker nothing to find in C2, and it changes the source data the next questions may rely on. Read the wording: "in cell X" or "using a formula" means SUBSTITUTE. "Update the sheet" or "correct every entry" usually means Find and Replace is fine.
Tests also like the traps shown above: the lower-case "blk" that SUBSTITUTE misses, the text result that makes SUM return 0, and the asterisk that wipes a column.
How to decide: a quick checklist#
Answer these in order. The first "yes" usually decides it.
- Must the original values stay visible? Yes: SUBSTITUTE.
- Will you get new data that needs the same fix? Yes: SUBSTITUTE.
- Does a task ask for the answer in a specific cell? Yes: SUBSTITUTE.
- Should the change reach several sheets, or text inside formulas? Yes: Find and Replace.
- Do you need a wildcard pattern rather than exact text? Yes: Find and Replace.
- Is it a one-off clean-up of your own file? Yes: Find and Replace, then check the count it reports.
Common mistakes with Find and Replace and SUBSTITUTE#
- Selecting one cell before Replace All. With a single cell selected, Excel searches the whole sheet. Select the column first.
- Searching for a bare
*or?. It matches everything or every single character. Use~*and~?. - Forgetting the dialog's settings. Match case, Match entire cell contents and Within: Workbook stay as you left them. Open Options >> and check them before Replace All.
- Expecting SUBSTITUTE to ignore case. It won't. Use UPPER or LOWER inside it, or Find and Replace.
- Adding up SUBSTITUTE results. They're text, so SUM returns 0. Use VALUE or
--. - Deleting the original column. SUBSTITUTE formulas then show #REF!. First copy the results and use Home > Paste > Values over them, then delete the source.
For spaces and hidden characters, neither tool is the best fit. TRIM and CLEAN are built for that, as TRIM vs CLEAN explains. And for a quick one-off reshape where the pattern is easy to show by example, Flash Fill can beat a formula.
Our recommendation#
Default to SUBSTITUTE in a helper column whenever the data comes from somewhere else, will be refreshed, or will be checked by someone. It keeps the original, it's repeatable, and it's what a test can mark. Wrap it in VALUE when the result is a number, and in UPPER when case varies.
Reach for Find and Replace for one-off fixes in your own file, for changes across many sheets or inside formulas, and when you need wildcards. Before you click Replace All, select the range, check Options >>, and escape any * or ?. Then look at the replacement count Excel reports: if it's not the number you expected, undo straight away.
Practise it#
Try the weight-cleaning exercise on this page: one SUBSTITUTE inside one VALUE. Then work through Cleaning messy text, where you fix separators, stray spaces and inconsistent capitals with SUBSTITUTE, TRIM and PROPER in a live spreadsheet, and every formula is checked as you go.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
The weights in column B are text, like 2.5 kg, so they can't be added up. In C2, remove " kg" with SUBSTITUTE and turn the result into a real number with VALUE.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Weight (kg) | |||
| 2 | 2.5 kg | |||
| 3 | 1 kg | |||
| 4 | 12 kg | |||
| 5 | 0.75 kg | |||
| 6 | 3 kg | |||
| 7 | 1.25 kg | |||
| 8 | ||||
| 9 | ||||
| 10 |
Tip: Work from the inside out: SUBSTITUTE(B2," kg","") gives the text "2.5", and VALUE turns that text into the number 2.5. Note the space before kg.
Practise this in a lesson
Frequently asked questions
What is the difference between Find and Replace and SUBSTITUTE in Excel?
Find and Replace is a tool that changes the cells themselves, once, when you click Replace All. SUBSTITUTE is a formula that shows a changed copy in another cell and keeps the original, and it updates when the original changes.
Is SUBSTITUTE case-sensitive?
Yes. =SUBSTITUTE(A2,"BLK","BLACK") does not change "blk". To catch every spelling, convert the text first, as in =SUBSTITUTE(UPPER(A2),"BLK","BLACK").
Can SUBSTITUTE use wildcards like * and ?
No. SUBSTITUTE treats * and ? as normal characters, so =SUBSTITUTE(A2,"*","") removes real asterisks only. Wildcards work in Find and Replace, where you put ~ in front of * or ? to search for the character itself.
Why does SUM return 0 after I use SUBSTITUTE?
SUBSTITUTE always returns text, even when the result looks like a number, and SUM skips text. Wrap the formula in VALUE, as in =VALUE(SUBSTITUTE(B2," kg","")), or put -- in front of it.
Can I undo Find and Replace in Excel?
Yes, press Ctrl+Z (Mac: ⌘Z) straight after Replace All to undo every replacement at once. Once you save and close the file, the original values are gone.