Excel Guide
How to Use FIND and SUBSTITUTE in Excel: Locate Text, Then Replace Exactly the Occurrence You Mean
Short answer: FIND tells you where a piece of text sits inside a cell; SUBSTITUTE swaps one piece of text for another. Use FIND when you need a position — to cut a name at the space, or to pull the domain out of an email address. Use SUBSTITUTE when you know the text to change but not where it sits — to turn dashes into slashes, or to fix a product-code prefix across a whole column. Together they are the pair that cleans messy imported data without retyping anything. Practise it: FIND and SUBSTITUTE — 10 Excel practice problems.
FIND: the position of a character
FIND returns the position of one text string inside another, counting characters from 1. Its syntax is =FIND(find_text, within_text, [start_num]), and start_num is optional — leave it out and the search starts at the first character.
Count it out for the email: a is 1, l is 2, i is 3, so @ is character 4. For "John Smith", the space is the fifth character. FIND returns the position of the first character of the match, so =FIND("cat", "the cat sat") returns 5, the position of the c.
Two things to know about FIND:
- It is case-sensitive.
=FIND("a", "Apple")returns#VALUE!, because there is no lowercaseain "Apple". Use SEARCH instead when case does not matter — SEARCH takes the same three arguments and is case-insensitive, and it also accepts wildcards, which FIND does not. - It returns
#VALUE!when the text is not found. If you are testing whether a cell contains a word, wrap it:=ISNUMBER(FIND("@", A2))returns TRUE or FALSE, and=IFERROR(FIND("@", A2), "No @ found")gives you a friendly message instead of an error.
The optional start_num lets you find a later occurrence. =FIND(" ", A2, 6) starts searching from character 6, so on "John Smith Jones" it finds the second space. That is the trick for pulling a middle name or a second word out of a longer string.
SUBSTITUTE: replace text, in place, by formula
SUBSTITUTE replaces one text string with another inside a cell. Its syntax is =SUBSTITUTE(text, old_text, new_text, [instance_num]). The first three arguments are required; the fourth is optional.
Leave out instance_num and SUBSTITUTE replaces every occurrence of the old text. That is the default, and it is the behaviour you want for standardising separators — every dash becomes a slash, every dot becomes a dash.
Add instance_num and only that one occurrence changes. In "the cat sat on the mat", the word "the" appears twice:
This is the one thing the Find and Replace dialog cannot do: change only the second occurrence and leave the first alone. Other uses: swap a product-code prefix (=SUBSTITUTE("OLD-4021", "OLD-", "NEW-") → NEW-4021), or change only the first instance (=SUBSTITUTE("red car, red bike", "red", "blue", 1) → blue car, red bike).
Like FIND, SUBSTITUTE is case-sensitive and does not support wildcards. It also never changes the original cell — it returns a new string, so the source text stays intact.
FIND + MID: extract the text after a delimiter
FIND on its own gives you a number. Paired with MID, it extracts the piece you actually want. To pull the domain out of an email address in A2:
FIND locates the @ (position 4 in "[email protected]"), plus one moves past it to the e, and MID takes everything from there to the end. The same pattern pulls a first name out of a full name — =LEFT(A2, FIND(" ", A2)-1) — or a file extension — =RIGHT(A2, LEN(A2)-FIND(".", A2)). The delimiter can be anything: a space, a comma, a hyphen, a dot. Measure with FIND, then cut with LEFT, RIGHT or MID.
Three mistakes to avoid
- Using FIND when case does not matter. Searching for "a" in a list of names will miss every capital A. Use SEARCH for case-insensitive matching.
- Forgetting that SUBSTITUTE replaces all occurrences by default. If you only wanted the first dash changed, the rest of the column is wrong too. Add
instance_numwhen you mean one specific occurrence. - Letting
#VALUE!leak into a report. A FIND that misses returns an error, not a zero. Wrap it in IFERROR or ISNUMBER before the result feeds a lookup or a total.
Practise it
PractiseSkills runs a dedicated FIND and SUBSTITUTE practice module: 10 exercises that build up step by step, starting with finding the position of an @ symbol, replacing a dash with a slash, and finding the position of a space, then moving on to replacing only the second occurrence, removing spaces entirely, and standardising phone-number separators. Three of the ten are free with solutions shown, and every exercise is graded on the formula you write in a live spreadsheet. Work through it at practiseskills.com/practice/excel/find-and-substitute, or start with the free diagnostic at practiseskills.com to see whether text functions are your weakest skill area first.
Try it yourself
Practice FIND and SUBSTITUTE with real interactive exercises and instant feedback.
Start practicing FIND and SUBSTITUTE →