See if cell value exists in a column of comma seperated values

LawnmowerITGuy

New Member
Joined
Aug 9, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have 2 sheets in my workbook. I am trying to determine if the serial number value from any given row in sheet 1 exits in a column of comma separated values in row Sheet2. I have no control over how the data is exported from either system. I've tried to find and I dont get any data. I've tried match with all 3 match types. If I do an exact match I get NA, if I do less than I get for the serial numbers but it's incorrect, and the same with less than. I'm not sure what the best way to get the data I want is.

On Sheet1 I have data that looks like this. It consits of a NodeName, RowID, Poller type and value. For each node there will be the same amount of Rows with a model poller and a serial poller. I've added an exists column that I want to put in a yes or no if the value exists
NodeNameRow_IDPollerStatusExists
Node10EX1Modelex3400
Node11EX1Modelex3400
Node10EX1SerialNY123456789
Node11EX1SerialNY124589648

Sheet2 contains serial numbers. The amount of serial numbers in a row is determined but how many units I have for that node
JW123548958, JW987654321, JW654987123, JW852963741
LX528936174, LX15975346
HV367259841
NY123456789, NY124589648
TC852643197
XU789258631
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Enter the following formula in E2, and copy down:

Excel Formula:
=IF(OR(ISNUMBER(SEARCH(","&D2&",",","&SUBSTITUTE(Sheet2!$A$1:$A$6," ","")&","))),"Yes","No")

lawmoweritguy.xlsm
ABCDE
1NodeNameRow_IDPollerStatusExists
2Node10EX1Modelex3400No
3Node11EX1Modelex3400No
4Node10EX1SerialNY123456789Yes
5Node11EX1SerialNY124589648Yes
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=IF(OR(ISNUMBER(SEARCH(","&D2&",",","&SUBSTITUTE(Sheet2!$A$1:$A$6," ","")&","))),"Yes","No")


lawmoweritguy.xlsm
A
1JW123548958, JW987654321, JW654987123, JW852963741
2LX528936174, LX15975346
3HV367259841
4NY123456789, NY124589648
5TC852643197
6XU789258631
Sheet2


Hope this helps!
 
Upvote 0
Solution

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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