Return values from a cell of values separated by commas that do not match a set of specified values listed within a separate column

anthx

New Member
Joined
Jun 2, 2024
Messages
7
Office Version
  1. 365
Hi, I have cells with IP addresses that are separated by commas and I want to return only the IP addresses separated by commas that do not match any of the IP addresses I've specified within a separate column. I've attached a picture of a simplified setup. I was able to create a function to return all of the matches, but now I want to return all of the IP addresses that do not match. I want to return the IP addresses that do not match from the cells with IP addresses separated by commas, not the IP addresses listed within the column. Please let me know if I can clarify anything or additional information would be useful.
 

Attachments

  • Capture.PNG
    Capture.PNG
    12.6 KB · Views: 10
How about
Excel Formula:
=BYROW(TRIMRANGE(B2:B1000),LAMBDA(br,LET(a,TEXTSPLIT(br,", "),ARRAYTOTEXT(FILTER(a,ISNA(XMATCH(a,A2:A10)))))))
 
Upvote 0
Solution
How about
Excel Formula:
=BYROW(TRIMRANGE(B2:B1000),LAMBDA(br,LET(a,TEXTSPLIT(br,", "),ARRAYTOTEXT(FILTER(a,ISNA(XMATCH(a,A2:A10)))))))
Yes, this worked perfectly! Thank you for the quick solution! :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

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