Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking to see whether a string contains a certain character
Is there any way to check whether string "chair" contains "*" or not? thankx in advance -- ajitpalsingh200 ------------------------------------------------------------------------ ajitpalsingh200's Profile: http://www.excelforum.com/member.php...o&userid=16150 View this thread: http://www.excelforum.com/showthread...hreadid=320533 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking to see whether a string contains a certain character
Use function InStr():
InStr(1, "chair", "*") returns 0 bcause * isn't found in "chair"; InStr(1, "chair", "h") returns 2, because h is found in the second position in "chair" starting from 1. HTH, Nikos "ajitpalsingh200" wrote in message ... Is there any way to check whether string "chair" contains "*" or not? thankx in advance -- ajitpalsingh200 ------------------------------------------------------------------------ ajitpalsingh200's Profile: http://www.excelforum.com/member.php...o&userid=16150 View this thread: http://www.excelforum.com/showthread...hreadid=320533 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
checking for a particular string in a cell | Excel Worksheet Functions | |||
checking for a string & No. | Excel Worksheet Functions | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
Checking the value of the end of a string | Excel Programming | |||
Checking the last character is in a list | Excel Programming |