Vlookup multiple values with comma separated list

andersen_yunan

New Member
Joined
Feb 7, 2018
Messages
36
I'm looking to use Excel to look up and return multiple reference values for a given key. VLookup does something very similar to what I need - but only returns a single match. The thing is, my reference cell contains comma separated list. For example, here is the example of my reference data.

[TABLE="width: 322"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]VisitDay[/TD]
[TD]Customer[/TD]
[/TR]
[TR]
[TD]MONDAY-1, MONDAY-3[/TD]
[TD]Store 1[/TD]
[/TR]
[TR]
[TD]TUESDAY-2[/TD]
[TD]Store 2[/TD]
[/TR]
[TR]
[TD]WEDNESDAY-1,SATURDAY-3[/TD]
[TD]Store 3[/TD]
[/TR]
[TR]
[TD]THURSDAY-1, THURSDAY-2, THURSDAY-3[/TD]
[TD]Store 4[/TD]
[/TR]
[TR]
[TD]MONDAY-2, MONDAY-4[/TD]
[TD]Store 5[/TD]
[/TR]
[TR]
[TD]TUESDAY-1, TUESDAY-2, TUESDAY-3[/TD]
[TD]Store 6[/TD]
[/TR]
[TR]
[TD]MONDAY-1, MONDAY-4[/TD]
[TD]Store 7[/TD]
[/TR]
[TR]
[TD]MONDAY-1, MONDAY-3[/TD]
[TD]Store 8[/TD]
[/TR]
[TR]
[TD]TUESDAY-2[/TD]
[TD]Store 9[/TD]
[/TR]
[TR]
[TD]WEDNESDAY-1,SATURDAY-3[/TD]
[TD]Store 10[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>

and I'm trying to get this value

[TABLE="width: 354"]
<colgroup><col><col span="4"></colgroup><tbody>[TR]
[TD] [/TD]
[TD="align: center"]Count[/TD]
[TD="align: center"]VisitDay[/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"]MONDAY-1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Store 1[/TD]
[TD="align: center"]Store 7[/TD]
[TD="align: center"]Store 8[/TD]
[/TR]
[TR]
[TD="align: center"]MONDAY-2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Store 5[/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"]MONDAY-3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Store 1[/TD]
[TD="align: center"]Store 7[/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"]MONDAY-4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Store 5[/TD]
[TD="align: center"]Store 7[/TD]
[TD="align: center"] [/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
Any help as to how to approach handling multiple values in this context is apprecited. Thanks.<strike></strike>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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