IF cell contains text found in another column

OllyMUK

New Member
Joined
Sep 12, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi

Can someone help me with this query? I need to highlight all the lines in the first table where column B has text that matches Column B of the second table.

I have a table of hardware like this;
image_2024-09-16_110657002.png


I have another table like this
image_2024-09-16_110922571.png


I want to create a column in the first table to show YES/NO as to whether the numerical code in column B contains any string that matches any cell in column B of the second table.

I would use VLOOKUP to find other cells in the second table but I need a true/false return for the new column in table 1.

Does that make sense?

Olly
 

Attachments

  • image_2024-09-16_110823615.png
    image_2024-09-16_110823615.png
    2.7 KB · Views: 6

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hello, maybe something like this?

Excel Formula:
=LET(
table_1,B2,
table_2,$B$7:$B$8,
b,--(TEXTSPLIT(table_1," ")),
c,ISNUMBER(b),
IF(SUM((FILTER(b,c=TRUE)=table_2)+0)>0,"YES","NO"))
 
Upvote 0
Select A2:C4( change as required). Table 2 is in Sheet2.
Apply CF
Formula
Excel Formula:
=COUNTIF(Sheet2!$B$2:$B$10,$C2)>0
or
Excel Formula:
=ISNUMBER(MATCH($C2,Sheet2!$B$2:$B$10,0))
 
Upvote 0

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top