I am doing a migration between too systems. The old system used Tags to classify products, the new system introduces Type.
The data is available to me as a CSV of several thousand rows I've loaded into Excel. Here's an example of the format.
Col A | Col B | Col C
Product | Type | Tags
Samsung S5 | | Android, Samsung, 5.1" Screen
Sony Z3 | | Android, Bluetooth, Sony, 5.2" Screen
LG G3 | | Android, LG, 5.5" Screen
I want to be able to populate Column B with a single tag from Column C. I could do it like this:
A1: =IF(SEARCH("Sony",B2),"Sony", IF(SEARCH("Samsung",B2),"Samsung",etc))
However I want to search/ match over 60 individual Tags in Column C into single values in Column B so this approach rapidly becomes unmanageable.
Is there another approach using Excel functions or would I have to use VBA?
I haven't used VBA in many years so any examples/ pointers would be appreciated.