Excel: Find Function
In Excel, the Find function returns the location of a substring in a string. The search is case-sensitive.
The syntax for the Find function is:
Find( text1, text2, start_position )
text1 is the substring to search for in text2.
text2 is the string to search.
start_position is the position in text2 where the search will start. The first position is 1.
Note:
If the Find function does not find a match, it will return a #VALUE! error.
Applies To:
- Excel 2007, Excel 2003, Excel XP, Excel 2000
For example:
Let's take a look at an example:

Based on the Excel spreadsheet above:
=Find("Alpha", A1, 1) would return 1 =Find("alpha", A1, 1) would return #VALUE! =Find("alpha", A2, 1) would return 1 =Find("the", A3, 3) would return 9 =Find("ph", "Alphabet", 2) would return 3
Frequently Asked Questions
Question: In Excel, I have the value "Supermarket" in cell A1 and 100 in cell A2.
Objective: If A1 contains "Super", then I want A3=A2. Otherwise, I want A3=0. I'm unable to use the Find function because if cell A1 does not contain "Super", the Find function returns the #VALUE! error which does not let me sum column A.
Answer: To make sure that do not return any #VALUE! errors when using the Find function, you need to also use the IsError function in your formula.
Let's take a look at an example.

Based on the spreadsheet above:
=IF(ISERROR(FIND("Super",A1,1))=TRUE,0,A2) would return 100
In this case, cell A1 does contain the value "Super", so the formula returns the value found in cell A2 which is 100.

Based on the spreadsheet above:
=IF(ISERROR(FIND("Super",A1,1))=TRUE,0,A2) would return 0
In this example, cell A1 does NOT contain the value "Super", so the formula returns 0.
Let's just quickly explain how this formula works. If cell A1 contains "Super", the Find function will return the numerical position of the value of "Super". Thus, an error will not result (ie. the IsError function evaluates to FALSE) and the formula will return A2.
If cell A1 does NOT contain "Super", the Find function will return the #VALUE! error causing the IsError function to evaluate to TRUE and return 0.
