The FIND function and the SEARCH function are very similar to each other. This example shows the difference.
1. To find the position of a substring in a string, use the FIND function. FIND is case-sensitive.
2. To find the position of a substring in a string, use the SEARCH function. SEARCH is case-insensitive.
Note: string "excel" found at position 11. Even though it's actually the string "Excel"
3. The SEARCH function is more versatile. You can use wildcard characters when you use this function.
Note: A question mark (?) matches exactly one character. An asterisk (*) matches a series of zero or more characters.
4. One other interesting point to mention about the FIND and the SEARCH function is that they have a 3rd optional argument. You can use this argument to indicate the position, counting from the left, at which you want to start searching.
Note: string "o" found at position 5.
Note: string "o" found at position 7 (started searching at position 6).
--
We are also on Face Book, Click on Like to jois us
FB Page: https://www.facebook.com/pages/Hyderabad-Masti/335077553211328
FB Group: https://www.facebook.com/groups/hydmasti/
https://groups.google.com/d/msg/hyd-masti/GO9LYiFoudM/TKqvCCq2EbMJ
---
You received this message because you are subscribed to the Google Groups "Hyderabad Masti" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyd-masti+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment