Hi team
I am trying unsuccessfully not to over-complicate something, but end up with two ridiculous lines of formulae to get an accurate result. Surely there must be a better way to do this:
I work with retail data. Now, I have a list of products, call this ColumnB. In this list of products, I want to be able to identify the house brands, which are identified in the actual product names e.g. "HouseBrand Peanut Butter 500GR".
To do this, I have set up a column to input the names of house brands (call this ColumnA), as they vary by each retail category, and thus need to be adjusted by various people for various data.
As such, I now need to search within the text of my product cells in ColumnB, and if it contains any one of the words listed in ColumnA, then return the word HOME (which I can then filter all products on).
Up until this point, I have used quite a string of text to try and accomplish this, but it needs to be versatile to be used by others, and it's asking for trouble to have people digging in a formula that looks like this:
=IF(OR(ISNUMBER(SEARCH("rite",D8)),ISNUMBER(SEARCH("Pnp",D8)),ISNUMBER(SEARCH("Spar",D8)),ISNUMBER(SEARCH("House",D8)),ISNUMBER(SEARCH("Checkers",D8))),"HOME","")
Is there a better way of doing this?
Your help would be much appreciated.
Regards,
LindsJ
I am trying unsuccessfully not to over-complicate something, but end up with two ridiculous lines of formulae to get an accurate result. Surely there must be a better way to do this:
I work with retail data. Now, I have a list of products, call this ColumnB. In this list of products, I want to be able to identify the house brands, which are identified in the actual product names e.g. "HouseBrand Peanut Butter 500GR".
To do this, I have set up a column to input the names of house brands (call this ColumnA), as they vary by each retail category, and thus need to be adjusted by various people for various data.
As such, I now need to search within the text of my product cells in ColumnB, and if it contains any one of the words listed in ColumnA, then return the word HOME (which I can then filter all products on).
Up until this point, I have used quite a string of text to try and accomplish this, but it needs to be versatile to be used by others, and it's asking for trouble to have people digging in a formula that looks like this:
=IF(OR(ISNUMBER(SEARCH("rite",D8)),ISNUMBER(SEARCH("Pnp",D8)),ISNUMBER(SEARCH("Spar",D8)),ISNUMBER(SEARCH("House",D8)),ISNUMBER(SEARCH("Checkers",D8))),"HOME","")
Is there a better way of doing this?
Your help would be much appreciated.
Regards,
LindsJ