If function inquiry

Copper Contributor

Using the data list below, how can I correctly enter a function in column 3 to show TRUE if the 4-digit characters in column 1 are within the data set in column 2?  Obviously, column 3 should show TRUE for this set.

 

Inventory Vendor#Financial software Vendor#Match?
26252625/4150FALSE
10881088/0609FALSE
26252625/4150FALSE
A025A025/C500FALSE
A025A025/C500FALSE
A025A025/C500FALSE
4 Replies

@RGarrett Try this:

Screenshot 2020-10-28 at 20.01.12.png

and copy the formula in C2 down.

Hi RGarrett,

 

You can use this formula =IFERROR(SEARCH(A2,B2)>0,FALSE)

@RGarrett 

 

Hi - Assuming you have your table in cell A1, the following formula should work starting in cell C2:

 

=IFERROR(IF(MATCH("*"&A2&"*",B2,0)>0,TRUE,FALSE),FALSE)

@RGarrett 

Another couple of variants

image.png

One by one

=COUNTIF(C3,"*"&B3&"*")>0

Spill range

=IF(ISNA(XMATCH("*"&B3:B9&"*",C3:C9,2)),FALSE, TRUE)