If Cell In Column Partially contains text in another Column

前端 未结 2 1542
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 08:38

I have been looking through all different sources and cannot find the exact answer to this. Was hoping someone can help me out.

I have two columns:



        
相关标签:
2条回答
  • 2020-12-20 09:01

    To do it for full columns as real non-array formula:

    =COUNTIF(B:B,"*"&A1&"*")>0
    
    0 讨论(0)
  • 2020-12-20 09:22

    This will do it:

    =SUMPRODUCT(ISNUMBER(SEARCH(A1,$B$1:$B$4))*1)>0
    

    The SUMPRODUCT() forces it to iterate through Column B and keep track of the ones that return true. So if any are found it adds 1 to the pool.

    The >0 test whether any returned TRUE.

    0 讨论(0)
提交回复
热议问题