Compare 2 comma delimited cells - non VBA

ljh89

New Member
Joined
Nov 26, 2019
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi All

I've been trying to get a non-VBA solution to comparing 2 comma delimited data cells. This is so that the sheet can be used on excel online.

I have a list of colleagues and each has a set of essential courses and a list of completed courses. Each list is contained in a single cell with each course seperated by a comma. I am looking to extract the courses that are in the essential list but not in the completed list. I've attached an example of the data and highlighted the cells where the issue is.
The most similar cases I have found online is VBA code that gives "additions" to one list compared to another but I can't use these.

Any idea if this is possible using fomulas only and not VBA using Excel 365?

Thanks

Lee
 

Attachments

  • listsexample.PNG
    listsexample.PNG
    5.3 KB · Views: 13

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I think that this should do it
Code:
=TEXTJOIN(",",1,IF(ISERROR(SEARCH(MID(","&B2,IF(MID(","&B2,ROW(INDIRECT("1:"&LEN(B2))),1)=",",ROW(INDIRECT("1:"&LEN(B2)))),7),","&C2)),IF(MID(","&B2,ROW(INDIRECT("1:"&LEN(B2))),1)=",",MID(B2,ROW(INDIRECT("1:"&LEN(B2))),5),""),""))
Array confirmed with Ctrl Shift Enter.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

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