• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need help on searching a string in a table

Hello,

I am trying to search a string from tab A in a table which is in tab B.. The formula I am using is =ISNUMBER(SEARCH(B3,Table1))

However, if I use the same formula in "Tab B" next to the column where the string is actually present, this is giving me TRUE and in any other place its giving a FALSE.

I tried using the array formula as well but its not working...

Please tell me where am I going wrong.

Regards,
Arvind
 

Attachments

  • Book1.xlsx
    13.8 KB · Views: 6
You cannot use the SEARCH function like that on a range of cells ( see the function's syntax)
In Sheet A you'll need something like =SUMPRODUCT(--ISNUMBER(SEARCH(B3,Table1)))
Why does it work on sheet B? Just try moving it to a row not containing your search value. It returns ...FALSE
So you are actually " cheating" :)
Why does it return TRUE when you enter the formula on the row containing the SEARCH string ? I'm not quite sure. As you can see the Evaluate Formula tool returns Table1 as starting from the row in which the formula is entered. Why? I don't really know
 
Back
Top