Hi All,
Need a help please with either using excel formula or Excel VBA to lookup cells with comma separated values.
I have 2 tables below: table 1 and table 2. I will like the Col B (2nd column) of Table 1 to return a true or yes when any of the value is in the Col A (first column) of table 2 are found in that cell.
Your advise here will be greatly appreciated.
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col A: Cells to search[/TD]
[TD]Col B:column to return lookup[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple, banana, orange, grape[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cherry, apple, tomato[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lettuce, strawberry, durian[/TD]
[TD]no[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cucumber, grape[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col A: Items[/TD]
[/TR]
[TR]
[TD]grape[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Regards,
Lawrence
Need a help please with either using excel formula or Excel VBA to lookup cells with comma separated values.
I have 2 tables below: table 1 and table 2. I will like the Col B (2nd column) of Table 1 to return a true or yes when any of the value is in the Col A (first column) of table 2 are found in that cell.
Your advise here will be greatly appreciated.
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col A: Cells to search[/TD]
[TD]Col B:column to return lookup[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple, banana, orange, grape[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cherry, apple, tomato[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lettuce, strawberry, durian[/TD]
[TD]no[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]cucumber, grape[/TD]
[TD]yes[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col A: Items[/TD]
[/TR]
[TR]
[TD]grape[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Regards,
Lawrence