Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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:

COL1     COL2
abc      defghe
def      iabclmn
ghi      zhued
fgh      lmnop

I want to know if a value in COL1 exist in COL2. So in this case I want it to look like this:

COL1     COL2      COL3
abc      defghe     TRUE
def      iabclmn    TRUE
ghi      zhued      FALSE
fgh      lmnop      TRUE

Is there a function that can do this, I have over 500 rows so I cannot just call out specific values?

I know there is an example that does specific values like this, but I want it to be by the entire column:

=ISNUMBER(SEARCH(substring,text))

Thanks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

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

=COUNTIF(B:B,"*"&A1&"*")>0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...