FIND Function - Excel
Overview
The FIND function in Excel is a useful tool for locating the position of a specific character or substring within a text string when it first appears. This function is case sensitive when looking for a particular character or substring within a given text and spaces are counted as a character.
Example:
=FIND("a", "Cake")
Syntax:
=FIND(find_text, within_text, [start_num])
find_text
: This is the text you want to find within the within_text
.
within_text
: This is the text string in which you want to search for find_text
. If omitted, the search starts from the beginning.
[start_num]
: (Optional) This is the starting position for the search within
Example: Specific Character
In this example, the FIND function returns the value 3 because the “n” character appears for the first time at the 3rd position in the word “running”.
Example: Substring
In this example, the FIND function returns the value 11 because the “dog” substring is not found until the start of the 11th position in the “the three dogs” text.
Example: start_num
In this example, I'll demonstrate how we can use the optional [start_num] input in the FIND function. We have the word “banana” and we are looking for the first occurrence of the letter “a” in that word, however this time we are asking the function to only start looking for the letter “a” on or after the 5th position in the word “banana”. The next time that the letter “a” appears is in the 6th position which is why we get an output of 6.