How to compare lists within two fields
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I have a dataset with two fields that I am trying to compare which can have a practically unlimited number of items in the list. I'd like to compare the items in the list and output both the similarities and differences into separate columns. My data currently looks like these first two columns:
List1 | List2 | Similarities | Differences |
A,B,C,D,E | B,D,C,E,F | B,C,D,E | A,F |
A,B,C,D | E,F,G | [NULL] | A,B,C,D,E,F,G |
A,B,C,D,E | B,C,E,D,A | A,B,C,D,E | [NULL] |
I realize I could do something with text to columns but I believe that wouldn't be the most efficient because the number of items in the list varies drastically.
Thank you!
Avery
Solved! Go to Solution.
- Labels:
- Fuzzy Match
- Preparation
- Text Mining
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Also, it is possible that there are duplicates within either list:
List1 | List2 | Similarities | Differences |
A,B,C,D,A,B,C,D | A,B | A,B | C,D |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@averyoldakowski
I expect your items are seperated withe delimeter "," then we can break them into each of them.
then it is all about Join and Union. 😁
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Perfect, thank you!!
