0

I am trying to do any partial matches in the column G with the values from column A. If any of the values from column A matches in column G, the return values is yes.

I tried many different lookup functions, but still can't figure it out. Can someone help me?

Tried Vlookup, Xlookup, Index Match.

enter image description here

Skin
  • 9,085
  • 2
  • 13
  • 29

2 Answers2

1

Use XMATCH() with wild card matching option. Try-

=ISNUMBER(XMATCH("*"&A2&"*",$C$2:$C$6,2))

COUNTIFS() will also work.

=IF(COUNTIFS($C$2:$C$6,"*"&A2&"*")>0,"Yes","NO")

enter image description here

Harun24hr
  • 30,391
  • 4
  • 21
  • 36
0

Stack Column and Matches

=LET(a,A2:A6,b,C2:C6,t,"Yes",f,"No",
     HSTACK(a,IF(ISNUMBER(XMATCH("*"&a&"*",b,2)),t,f)))

enter image description here

Results Only

=IF(ISNUMBER(XMATCH("*"&A2:A6&"*",C2:C6,2)),"Yes","No")
VBasic2008
  • 44,888
  • 5
  • 17
  • 28