I am trying to do a search to compare a cell to a range of cells.
Ex:
A B
cat cat
dog
horse dog
bird horse
mouse mouse
zebra
dog horse are both in A2 with a hard return between them.
I want to know know if B1 is in range A1:A5
I am trying to do a search to compare a cell to a range of cells.
Ex:
A B
cat cat
dog
horse dog
bird horse
mouse mouse
zebra
dog horse are both in A2 with a hard return between them.
I want to know know if B1 is in range A1:A5
Last edited by NBVC; 11-05-2010 at 03:45 PM.
Try
=Isnumber(Search(B1,$A$1:$A$5))
TRUE result means item found in the range.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
It didn't work. I get False when I should get a True.
Okay, try:
=ISNUMBER(MATCH("*"&B1&"*",$A$1:$A$5,0))
Worked. Thanks so much!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks