Let's say we have a table like below which pairs each name with a colour:
Name | Colour |
---|---|
Paul | blue |
John | red |
I'm looking to create a formula in the 2nd column below that will return the colour associated with the name if the 1st column contains the name anywhere in the string.
Data | Colour |
---|---|
Paul*6871628 | blue |
paul*6871628 | blue |
apda23.zzJohn | red |
asdazjohn | red |
borp paul reck | blue |
jgk John wqty | red |
microsoft-excel
tag.