find the common words in title of the books in Excel, the output like this :
'book common user_id
physics physics 1
Principles of plasma physics physics,plasma 2
Fundamentals of plasma physics fundamentals,plasma,physics 3
Fundamentals of thermodynamics fundamentals 4
'
So here's my shot at this problem. I am aware that the code is rather messy: I've been very sloppy with variable names, error handling and so on, but it gives you an idea of how it can be done. I've created a UDF
Common()
which takes 4 arguments:So for example, if you have your titles in A2:A7 and your exclusion list in E2:E3, you could use the formula
= Common( A2, $A$2:$A$7, , $E$2:$E$3 )
in cell B2 and copy down to B7.