vigneshjan24
New Member
I want to get a result as if A1 contains the word "pen", in B1 it should result as "pen" otherwise it should be "NO". So this is the formula i used in B1
=IF(ISNUMBER(SEARCH("pen",A1)),"pen","NO")
Below are the results:
Left side is input and right side is result
1) Black pen = pen
2) Blue pen = pen
3) Rubber = NO
4) pencil = pen
5) Scale = NO
6) Red pen = pen
^in the above results you may note that the first three and last two results came correctly as desired. But in fourth the word "pen" in "pencil" have been taken by formula. But it should not.
In my usage I will not meet this issue but i want to invent this thing for my knowledge.
Pls sort this out.
=IF(ISNUMBER(SEARCH("pen",A1)),"pen","NO")
Below are the results:
Left side is input and right side is result
1) Black pen = pen
2) Blue pen = pen
3) Rubber = NO
4) pencil = pen
5) Scale = NO
6) Red pen = pen
^in the above results you may note that the first three and last two results came correctly as desired. But in fourth the word "pen" in "pencil" have been taken by formula. But it should not.
In my usage I will not meet this issue but i want to invent this thing for my knowledge.
Pls sort this out.