Returning Text Templates with Keywords

rorymacaskill1

New Member
Joined
Mar 13, 2017
Messages
6
Hi everyone,

We create a lot of letters for clients and often find ourselves writing out much the same thing from scratch. I'm looking for a way to paste the text from the letters I write into a database spreadsheet, let's say column A, and characterise them with, say, up to 10 relevant keywords in column B, let's say "high-turnover" "retail" "marketing" (ideally with a Description and Category column for completeness). Then, when I am next writing a letter for a high-turnover retail client about marketing I would like to be able to type these same keywords into a retrieval function in separate sheet and have the template database searched for the letter template most relevant to those keywords, where it could readily be copied and pasted into a letter. Of course, over time it is likely that I will end up with more than one template matching a given set of keywords, and similarly I may make searches for more keywords than I have assigned to any one individual template. In these circumstances I'd look for a list of multiple templates to be returned in order of the largest number of keywords matched, from which I could manually choose the most appropriate. I'd also like to be able to stipulate that a given keyword must be matched.

Database:
DescriptionCategoryKeywordsLetter Text
IntroductionSalutationswelcome, hello, I'm letter template A
Dogs vs CatsChoicesdogs, cats, comparison, choiceI'm letter template B
DogsInformationdogs, feeding, walking, grooming, breedingI'm letter template C
CatsInformationcats, feeding, breeding, care, temperamentI'm letter template D

<tbody>
</tbody>

Keyword Search:
Keywords:dogs, feeding, breeding

<tbody>
</tbody>

Best Matches:
Keywords Matched:DescriptionCategoryKeywordsLetter Text
3DogsInformationdogs, feeding, walking, grooming, breedingI'm letter template C
2CatsInformationcats, feeding, breeding, care, temperamentI'm letter template D

<tbody>
</tbody>


I hope that comes across clearly enough... does anyone have any ideas how it could work? I'm fairly Excel literate but have never attempted anything like this. Keen to try and keep it to Excel + VBA for the ease of use and distribution.

I appreciate everyone's contributions!

Many thanks.
 

Forum statistics

Threads
1,081,969
Messages
5,362,477
Members
400,676
Latest member
BiochemBoi95

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top