The FIND function and SEARCH function are somewhat similar, but still there is a factor that distinguishes them to be selective for solving our query in Microsoft Excel.
FIND function in Microsoft Excel returns the position of a specified character or sub-string within a string or text.
SEARCH function returns the position of the first character of sub-string or search_text in a string. Syntax:- =SEARCH(find_text,within_text,[start_num])
In the below table, we can see the difference between both functions:-
|This function is case-sensitive||This function is not case-sensitive|
|It does not allow wildcard characters||It allows the wildcard characters such as “?”, “*” etc.|
|This function search exact text||This function does not check uppercase and lowercase letters|
Let’s take examples and understand:-
Let’s go to the Excel sheet. We have data sets in cell A7 & A8. And, we will put the function in cell B7 & B8 to get the desired output.
In the above example, we want to find the place number of the character “Excellent”, follow below given steps:-
Formula Explanation: – First of all, find function will check the “Excellent” in the defined cell from the first position; from whatever position text will start, function will return as result. In the cell text, we can see that Excellent is starting from the first place of the cell text.
Let’s understand the case, in which function will not work
The function has given #VALUE! Error, because this function works is case-sensitive and, here in the function, we have mentioned “Excel”, and the same text is available in lower case in the cell.
First we want to find out the Excellent within a cell:-
Note:- We haven’t defined the exact text for which we want to search the position.
Let’s understand the use of Wildcard characters in SEARCH function. Now, we will search for “Forum”
In this way, we can use wildcard character in SEARCH function to get the position number within cell text.
Note: – Another interesting point to mention about the FIND and the SEARCH function is that they have a 3rd optional argument. We can use this argument to indicate the position, counting from the left, from where we want to start searching.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.