The FIND function
FIND tells you where something is inside a piece of text, as a position counted from 1. On its own that's just a number, but it's what makes LEFT, RIGHT and MID work on text of any length.
FIND is case-sensitive and doesn't allow wildcards. If you need either of those, use SEARCH instead.
=FIND(find_text, within_text, [start_num])
Arguments
- find_text
- The character or text to look for, such as "@" or " ".
- within_text
- The text (or cell) to search in.
- start_numoptional
- The position to start searching from. Leave it out to start at the first character.
Try it
=FIND("@",A2) in B2. priya.shah is 10 characters long, so the @ is the 11th character.
B2
| A | B | C | D | |
|---|---|---|---|---|
| 1 | @ position | |||
| 2 | priya.shah@northwind.co.uk | 11 | ||
| 3 | tom.oakes@harbourmail.com | |||
| 4 | j.wright@leedsfc.org | |||
| 5 | ||||
| 6 |
Edit the formula in B2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =LEFT(A2,FIND("@",A2)-1) | priya.shah | Take everything before the @: one less than its position. |
| =FIND(".",A3,FIND("@",A3)) | 22 | Start searching at the @ to find the first dot in the domain, not the one in the name. |
| =FIND("T",A3) | #VALUE! | FIND is case-sensitive: there's a small t in tom, but no capital T. |
Tips
- Subtract 1 from FIND's result to stop just before the character, or add 1 to start just after it.
- Use the optional start position to find the second occurrence: search again from one past the first.
- Wrap FIND in IFERROR when the character might be missing:
=IFERROR(FIND("@",A2),0).
Common mistakes
- FIND returns #VALUE! even though the text is clearly there.Check the case: FIND treats "Leeds" and "leeds" as different. Use SEARCH to ignore case.
- FIND("*",A2) finds a literal asterisk, not "anything".FIND has no wildcards. SEARCH supports * and ?.
- LEFT with FIND includes the separator.Subtract 1:
=LEFT(A2,FIND(" ",A2)-1).
Practise FIND with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.