Matt Allington
MrExcel MVP
- Joined
- Dec 18, 2014
- Messages
- 1,629
Hi
I am trying to write a recursive query that will search for strings (column F) in a single column (column C). If the string is found, then a new column should create the category (Column E).
I have produced a sample workbook and written the starting code. Currently I have a single line of code that searches for "Apples" and adds the word "Fruit" into a new column. Now I am thinking that I should be able to manually alter the query I have using the "_" operator and pass a list of search terms (Column F) to the existing single step and have it return a table of all the matching values (sourced from column E) into a single column. I think this should be possible (Marcel, Imke)? however it is beyond my current understanding.
I would appreciate any help, even if you can tell me it can't be done.
Matt
Sample http://xbi.com.au/files/forum_question.xlsx
I am trying to write a recursive query that will search for strings (column F) in a single column (column C). If the string is found, then a new column should create the category (Column E).
I have produced a sample workbook and written the starting code. Currently I have a single line of code that searches for "Apples" and adds the word "Fruit" into a new column. Now I am thinking that I should be able to manually alter the query I have using the "_" operator and pass a list of search terms (Column F) to the existing single step and have it return a table of all the matching values (sourced from column E) into a single column. I think this should be possible (Marcel, Imke)? however it is beyond my current understanding.
I would appreciate any help, even if you can tell me it can't be done.
Matt
Sample http://xbi.com.au/files/forum_question.xlsx
Last edited: