Excel function

FINDfunction

Returns the position of one text inside another (case-sensitive).

All versions
=FIND("-", "A-2026-0457", 3)

find_text1 char

1-

within_text11 chars

1A
2-
32
40
52
66
7-
80
94
105
117

Click a character in within_text to start searching from there. Try the 2nd character. Try breaking it on purpose to see the errors.

Result

7

find_text

The text to find. Uppercase and lowercase are different, and ? and * are plain characters.

within_text

The text to search in.

start_num

Which character to start searching from. If omitted, 1. The result is always counted from the start. Clicking a character also changes it.

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

  1. 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.

  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.

  3. Example 3. Take the part before a separator

    =LEFT(A2, FIND("-", A2)-1)

    Takes everything just before "-".

Common mistakes

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.