How to Use the FIND Function in Google Sheets | Locate the Position of Specific Text
How to Use the FIND Function
The FIND function returns the character position (counting from the start) where a specified search string first appears within text. Rather than being used alone, it is frequently combined with LEFT or MID to dynamically extract text before or after delimiters such as @ or -.
Syntax
=FIND(search_for, text_to_search, [starting_at])
- search_for: The character or word whose position you want to find (required).
- text_to_search: The text string or cell reference to search within (required).
- starting_at: The character position from the start of the text at which to begin searching (optional). Defaults to
1(the beginning).
Example Using a Table
Here is an example of locating the @ symbol in email addresses and combining it with LEFT to extract the username portion.
| Row | Column A (Email Address) | Column B (@ Position) | Column C (Extracted Username) |
|---|---|---|---|
| 1 | Email Address | @ Position | Username |
| 2 | taro.yamada@example.com | =FIND("@", A2) → 12 |
=LEFT(A2, B2-1) → taro.yamada |
| 3 | info@sample.co.jp | =FIND("@", A3) → 5 |
=LEFT(A3, B3-1) → info |
| 4 | support_2026@test.org | =FIND("@", A4) → 13 |
=LEFT(A4, B4-1) → support_2026 |
- Formula:
=FIND("@", A2) - Result:
12
By combining them as LEFT(A2, FIND("@", A2) - 1), you can accurately extract everything before @ regardless of email address length.
Common Errors and Notes
- Returns
#VALUE!If Not Found: If the target string does not exist intext_to_search,#VALUE!is returned. To check whether a string is present asTRUE/FALSE, wrap it inISNUMBER(FIND("@", A2)). - Case-Sensitive: Searching for
"A"will not match lowercase"a". Use theSEARCHfunction if you want case-insensitive matching. starting_at< 1or Beyond Text Length Causes#VALUE!: Passing0or less, or a number greater than the length oftext_to_search, results in a#VALUE!error.
Frequently Asked Questions
Q. What is the difference between FIND and SEARCH?
A. FIND is case-sensitive and does not support wildcards (* or ?). In contrast, SEARCH is case-insensitive and supports wildcard pattern matching.
Q. How do I avoid the #VALUE! error when FIND does not locate the text?
A. Wrap it in IFERROR. For example, writing "=IFERROR(FIND("@", A2), 0)" returns 0 instead of an error when @ is not found.