Function · Text
Excel FIND function
The Excel FIND function returns where one text value starts inside another. It is case-sensitive. 555 starts at character 5 of 512-555-0148.
Syntax =FIND(find_text, within_text, [start_num])
=FIND("555","512-555-0148")Arguments
| Name | Required | What to pass |
|---|---|---|
| find_text | Required | The text to look for. Case matters. Wildcards are not special. |
| within_text | Required | The text to search. |
| start_num | Optional | Where to start looking. The default is 1, the first character. |
Examples
Where 555 starts in a phone number
=FIND("555",B1)Result 5
| A | B | |
|---|---|---|
| 1 | Phone | 512-555-0148 |
| 2 | Position of 555 | 5 |
FIND returns the position of the first match. In 512-555-0148, 555 begins at character 5. The match is case-sensitive. =FIND("tx","Austin, TX 78701") is #VALUE! because the cell holds TX in capitals. SEARCH ignores case and would return 9 for that address.
Use the position as the start for MID when you need the characters after a marker. A miss is an error, not a zero. Zero would look like “found at the beginning” if you were not careful, so the error is the safer default. IFERROR can turn it into a blank when the sheet is a cleanup, not a check.