Assign a category to an identified keyword in a line of text
I would like to assign a category to identified keyword in a string and found a solution for excel. Now I am trying to find a way to "convert" the array formula to somewhat that works in iWork numbers as well.
The formula looks like: {=INDEX(categories;MATCH(TRUE;ISNUMBER(SEARCH(keywords;B5));0))} where "keywords" is a named range (Col1 from table2).
The tables behind are as follows:
Table1:
Col1: text with the string I am looking for
Col2. category (here the formula above should insert the corresponding category
Table2:
Col1: Keyword (the word or string I am looking for in the other table)
Col2: Categories (the categories assigned to the keywords - if they are in the first table in Col1)
Is it possible to do that in numbers?
Many thanks for your thought already now.
iMac Line (2012 and Later)