a exact string search inquiry
True, Biff
If the desire is to properly catch the word in all possible scenarios...it's
time to graduate to regular expressions. Perhaps one of the R.E.
afficionados will post a solution..
***********
Regards,
Ron
XL2002, WinXP
"Biff" wrote:
I missed on: a nowhere man
We both miss on:
now, is the time
do it now!
"now" or never
etc
Punctuation marks always ruin the party!
Biff
"Ron Coderre" wrote in message
...
Try this:
For a string in A1
B1: =IF(SUM(COUNTIF(A1,{"now *","* now","* now *"})),"Yes","No")
That formula behave correctly in the below situations:
PHRASE TO TEST RETURNED VALUE
the now look Yes
now is the time Yes
the time is now Yes
to know me No
it is known to me No
a nowhere man No
Does that help?
***********
Regards,
Ron
XL2002, WinXP
"vito" wrote:
i want to know whether a string is in a cell, built-in search function,
using formula of vlookup and find do not help.
e.g. i'm searching the word "now"
the text "i want to know whether a string is in a cell, built-in search
function, using formula of vlookup and find do not help." will be
returned
as a match while it is not i want.
could anybody tell me what i can do? thanks in advance.
|