Hi,
Since I wasn't sure how many words to compare from your sample data, added 3rd argument to determine.
e.g
in cell
=wfind(A1:B1:B10,3)
The code will:
go through B1 to B10 testing if there is a cell which matches number of words from the left.
if A1 contains AA BBB CCC nn (will test up to CCC, since the 3rd arg is 3)
B1 AA BBB nn (not found)
B2 AA BBB CCC DDD FFF (found)
B3 AA CCC BBB nn (not found)
B4 AA BBB CCC dd (found)
B5 BB AAA CCC (not found)
B6 CC BBB AAA dd (not found)
B7 AAA BBB CCC QQ (found)
.
.
.

Originally Posted by
PLPE
Hi Jindon,
Thanks for the input on my problem. I've looked at your code & it seems to return "Found" for every input. For example; I typed "hello world" in C1 and used your code to find it in a range (where it did not exist), & it returned "hello world Found".
Any chance of adding a few comments to the code so I can see where you are coming from?
Thanks,
Jerry
Bookmarks