formulastreak

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

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.

Workshop sign-ups · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = 12
ABCDE
1NameEmailMember codeCity@ at
2 mara okafor mara.okafor@example.comGB-2041London12
3JONAS LINDjonas.lind@example.orgSE-1187Malmö
4priya ramanpriya.raman@example.netIN-3302Pune
5Tomás Ruiz tomas.ruiz@example.comES-0419Seville
6elif demirelif.demir@example.orgTR-2750Izmir
7 Kenji MORIkenji.mori@example.netJP-1093Osaka
8sofia rossisofia.rossi@example.comIT-4468Turin
9Leo Brandtleo.brandt@example.orgDE-3321Leipzig

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. 1. FIND: 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.
    • what = `"@"`: the character or text to look for, in quotes
    • text = `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

ArgumentRequiredWhat it is
find_textYesWhat to look for, in quotes, such as "@". Capitals and lower case are different.
within_textYesThe text or cell to search, such as B2.
start_numNoThe 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. SEARCH accepts 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.

Practise FIND on a live sheet

Lesson 24, Find a position: FIND and LEN (Unit 6, Text and dates), has 4 graded exercises, checked instantly, with steps and hints when you're stuck. Pro