Hi, I have run into a conundrum that I have spent far too many hours trying to work through. :banghead: Hopefully I can find some assistance here.
I'm trying to streamline a presentation for a department in my company by pulling their spreadsheets into access via the external data, and running various queries to dump back into another excel sheet that would present the specific information they're looking for, as opposed to them constantly repopulating. One issue I've run into is that one of the categories, (colour), has various entries with notes in the same cell, (e.g. instead of Georgia Green, it has "Georgia Green 11 Shop 2:35am"). I need a column that simply has "Georgia Green". Clearly if I only had one or four colours, I could just use an iif statement with the "like" operator. However, we have over a dozen colours, and we'll be adding more next year.
Sorry about the long intro, but what I want to do is create a table with Like lookup words like "*Georgia*" and another column with the desired entry "Georgia Green" and have an iif statement that looks through the first column and if the entry contains a word from the column, the formula cell will be populated with the corresponding name. Something like the following:
Iif(Table1.Color Like "*Table2.ColorCode*", Table2.ColorTitle, ""
This clearly does not work, but I think you get the point. Any ideas?
thank you in advance for any help and/or any consideration of the question.
I'm trying to streamline a presentation for a department in my company by pulling their spreadsheets into access via the external data, and running various queries to dump back into another excel sheet that would present the specific information they're looking for, as opposed to them constantly repopulating. One issue I've run into is that one of the categories, (colour), has various entries with notes in the same cell, (e.g. instead of Georgia Green, it has "Georgia Green 11 Shop 2:35am"). I need a column that simply has "Georgia Green". Clearly if I only had one or four colours, I could just use an iif statement with the "like" operator. However, we have over a dozen colours, and we'll be adding more next year.
Sorry about the long intro, but what I want to do is create a table with Like lookup words like "*Georgia*" and another column with the desired entry "Georgia Green" and have an iif statement that looks through the first column and if the entry contains a word from the column, the formula cell will be populated with the corresponding name. Something like the following:
Iif(Table1.Color Like "*Table2.ColorCode*", Table2.ColorTitle, ""
This clearly does not work, but I think you get the point. Any ideas?
thank you in advance for any help and/or any consideration of the question.