Excel Get Common Words of Comma-separated Word Strings
Problem description & analysis
Below is Excel data:
hello,how,are,you,today |
hello,I,am,doing,good,and,you |
We are trying to get the common words of the two comma-separated word strings. Below is the expected result:
hello,you
Solution
Use SPL XLL plug-in
Write the formular in a blank cell:
=spl("=(?1.split@c()^?2.split@c()).concat@c()",A1,A2)
As shown:
Return:
Explanation: split A1,A2 into a sequence by comma,calculate the intersection, then concat into string
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.scudata.com
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/