The Excel FIND FunctionSearch this site:
Custom Search
Basic DescriptionThe Excel FIND function returns the position of a specified character or string within a supplied text string. The function is case-sensitive.The format of the function is: FIND(find_text, within_text, [start_num])
where the arguments are as follows:
Note: This function is case-sensitive. If you want a non-case-sensitive search, try the SEARCH function. The FIND function will return an error if the supplied find_text is not found. If the supplied find_text is found, the function returns a number, representing the position of the find_text in the within_text string. ExampleThe following example shows the Excel FIND function applied to the values in cells B1 - B4 of the example spreadsheet.
The results of the 4 calls to 'FIND' are shown in the spreadsheet below.
Note that, due to the case-sensitivity of the FIND function, the use of this function to find "T" and the use of the function to find "t" return different results. Also note the fourth example (in cell C4), in which the start_num is set to 4. In this case the search begins at the fourth character of the within_text string. Therefore, the result returned is position 5. Example 2 - Use FIND to Pick Out Cells Containing Specific TextThe following example shows the Excel FIND function used to highlight cells containing a specific text string.Imagine you have a spreadsheet showing members of staff alongside a list of skills. You want to pick out the rows containing members of staff who have typing skills. One way to do this is to use the FIND function to look for the word "Typing" in the 'Skills' column. This is shown in the spreadsheet below.
In the example above, the function fails to 'FIND' the string "typing" within cell B4. This is because the FIND function is case sensitive. If you need to do a non-case-sensitive search, you should use Excel's SEARCH function. You might want to tidy up the results of the FIND function in the example above. This can be done using the IF and ISERROR functions. For example, the formula in cell C2 could be written as =IF(ISERROR(FIND(C$1, B2)),0,1)
This would return the value "1" if the text "Typing" was found in cell B2 and "0" otherwise. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2008-2010 ExcelFunctions.net |
