Text function
FIND function in Google Sheets and Excel
FIND returns the position of one piece of text inside another, counting from 1. It's case-sensitive.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
FIND(find_text, within_text, [start_num])Arguments in [brackets] are optional. Google Sheets writes it FIND(search_for, text_to_search, [starting_at]).
Example
=FIND("@",B2) reads: Find where "@" appears in B2 (mara.okafor@example.com), counting characters from the left.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Name | Member code | City | @ at | |
| 2 | mara okafor | mara.okafor@example.com | GB-2041 | London | 12 |
| 3 | JONAS LIND | jonas.lind@example.org | SE-1187 | Malmö | |
| 4 | priya raman | priya.raman@example.net | IN-3302 | Pune | |
| 5 | Tomás Ruiz | tomas.ruiz@example.com | ES-0419 | Seville | |
| 6 | elif demir | elif.demir@example.org | TR-2750 | Izmir | |
| 7 | Kenji MORI | kenji.mori@example.net | JP-1093 | Osaka | |
| 8 | sofia rossi | sofia.rossi@example.com | IT-4468 | Turin | |
| 9 | Leo Brandt | leo.brandt@example.org | DE-3321 | Leipzig |
E2 shows 12: in mara.okafor@example.com the @ is the 12th character.
How the spreadsheet calculates it
Finds where "@" first appears in B2, as a character position (1 = the first character). It's case-sensitive and gives #VALUE! if it isn't there.
- 1. FIND: Finds where
"@"first appears inB2, as a character position (1 = the first character). It's case-sensitive and gives#VALUE!if it isn't there.what=`"@"`: the character or text to look for, in quotestext=`B2`: the cell to look in
More FIND examples
=FIND(".",B2)The position of the first dot in the email: 5.=LEFT(B2,FIND("@",B2)-1)Everything before the @.=FIND(".",B2,FIND("@",B2))The first dot after the @: where the domain ending starts.=IFERROR(FIND("@",B2),"No @")A message instead of #VALUE! for entries without an @.=ISNUMBER(FIND("-",C2))TRUE when the member code has a dash.
Paste any of these into the formula explainer to see it step by step.
Tips
- FIND is rarely the final answer: it feeds a position to LEFT, MID or RIGHT.
- Subtract 1 to stop before the character, add 1 to start after it.
- Use start_num to skip past a part you've already handled.
What FIND is used for
Locating separators (@, -, a space, a comma) so LEFT, MID and RIGHT can cut text at the right place; checking that emails contain @; and flagging rows whose text contains a code or keyword.
Arguments
| Argument | Required | What it is |
|---|---|---|
| find_text | Yes | What to look for, in quotes, such as "@". Capitals and lower case are different. |
| within_text | Yes | The text or cell to search, such as B2. |
| start_num | No | The position to start searching from. Left out, it's 1.Watch out: 0, or a number past the end of the text, gives #VALUE!. |
Common mistakes
Swapping the arguments: what to find comes first.
Looking for text that isn't there: #VALUE!.
Expecting wildcards: FIND treats * and ? as ordinary characters.
SEARCHaccepts wildcards and ignores case.Searching for a capital in lower-case text:
FIND("M",B2)can't find the m in mara, so it gives #VALUE!.
In Google Sheets
Google Sheets has FIND with the same arguments, written FIND(search_for, text_to_search, [starting_at]).
Errors you may see with FIND
- #VALUE!: The text isn't there (in that exact case), or start_num is 0 or past the end of the text.
Questions
How do I check if a cell contains a word?
Wrap FIND in ISNUMBER: =ISNUMBER(FIND("pot",D2)) is TRUE when D2 contains "pot" in lower case. Use SEARCH instead to ignore case.
FIND or SEARCH?
Both return a position. FIND is case-sensitive and takes no wildcards; SEARCH ignores case and accepts * and ?. Use FIND for exact characters like @ or -, SEARCH for words people may type in any case.
How do I avoid #VALUE! when the text isn't there?
Catch it: =IFERROR(FIND("@",B2),"No @"). Inside a bigger formula, test with ISNUMBER(FIND(…)) first.
How do I find the second occurrence?
Start searching one past the first: =FIND(".",B2,FIND(".",B2)+1) returns the position of the second dot.
Sources
Official documentation the facts on this page were checked against.