Formula to match any part of string in cell to lookup table

bentham7246

New Member
Joined
Nov 5, 2009
Messages
2
Hi, I've been scratching my head all day on this one. I feel like it should be easy but I can't fathom out how to do it. Any help would be much appreciated

So here's a sample:

[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]Item Colour[/TD]
[TD]Colour Lookup[/TD]
[/TR]
[TR]
[TD]OFF WHITE[/TD]
[TD]WHITE[/TD]
[/TR]
[TR]
[TD]DARK BLUE[/TD]
[TD]BLUE[/TD]
[/TR]
[TR]
[TD]GREY MARL[/TD]
[TD]GREY[/TD]
[/TR]
[TR]
[TD]NAVY/RED/GREY[/TD]
[TD]MULTI[/TD]
[/TR]
</tbody>[/TABLE]









Lookup Table

[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]Colour List[/TD]
[/TR]
[TR]
[TD]BLUE[/TD]
[/TR]
[TR]
[TD]RED[/TD]
[/TR]
[TR]
[TD]GREY[/TD]
[/TR]
[TR]
[TD]WHITE[/TD]
[/TR]
[TR]
[TD]BLACK[/TD]
[/TR]
</tbody>[/TABLE]











So basically I have a big list of items each with a unique colour but they will be different variations such as light blue, dark red, midnight blue, honey orange etc etc. I'm just looking to match one of the words from my item list to my colour look up table so I can try to categorize items into colour groups


Can this be done through formula or is it a VBA task?

Thank you
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Place first table in A1:B5. Second in E1:E6. In B2:

=IF(SUM(INDEX(--(ISNUMBER(SEARCH($E$2:$E$6,A2))),0))>1,"MULTI",INDEX($E$2:$E$6,MATCH(1,INDEX(--(ISNUMBER(SEARCH($E$2:$E$6,A2))),0),0)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top