Hi
I have two unrelated tables.
Table A:
ID Sentence
1 The bird, cat and dog are Jason's friendly pets.
2 My dog really likes to go to the dog park.
3 I have a very large, colourful and noisy bird.
Table B:
Keywords
bird
cat
dog
dog park
sheep
pets
park
If it's possible, I need help with a query or VBA that will ultimately give me the result below:
ID Sentence Match1 Match2 Match3 Match4
1 The bird, cat and dog are Jason's friendly pets. bird cat dog pets
2 My dog really likes to go to the dog park. dog dog park
3 My bird is a very large, colourful and noisy bird. bird bird
If there's no keyword matches in the sentence, the ID and sentence would still appear but all Match columns would be blank.
EDIT: The same word can appear more than once as in ID 3.
Would anyone know how I can achieve this? TIA
Bookmarks