What is the FIND function?
=FIND(find_text, within_text, [start_num])FIND returns the position of the first occurrence of find_text in within_text. It is most often used with LEFT, MID and RIGHT to take the parts before or after a separator.
FIND is case-sensitive and does not use wildcards. To ignore case or use ? and *, use SEARCH. Play the steps to see each character compared until the match.
Arguments
- find_text
- The text to find. If empty, start_num is returned.
- within_text
- The text to search in.
- start_num
- Optional. Which character to start from. Less than 1 or longer than within_text returns #VALUE!.
FIND examples
Example 1. The second "-"
=FIND("-", "A-2026-0457", 3)Starting at character 3 skips the "-" at 2 and returns 7. Without start_num, the result is 2.
Example 2. Case-sensitive
=FIND("m", "Miriam McGovern")Based on Microsoft's example. The capital M is skipped and the lowercase m at 6 is returned. Finding "M" returns 1.
Example 3. Take the part before a separator
=LEFT(A2, FIND("-", A2)-1)Takes everything just before "-".
Common mistakes
find_text not found
You get #VALUE!. Wrap it, for example =IFERROR(FIND("-",A2), 0), to show another value.
Counting from start_num
Whatever start_num is, the result is always counted from the first character of within_text.
FAQ
- How is FINDB different?
- FINDB counts bytes instead of characters, which only matters for languages with double-byte characters.
- Just check whether a text is present?
- =ISNUMBER(FIND("Seoul", A2)) is TRUE if present, FALSE if not.