I'm trying to create a dictionary of lists. I'm used to this in python but in vba I'm having difficulties. The data is in columns A and B (I'll be using a range with end(xldown) instead of hardcoding A1:A4 this is just illustrative) and they look something like this:
A Apple
A Banana
B Carrot
B Juice
Essentially I'm wanting to create a dictionary that looks (in python format as: {A:[Apple,Bannana], B:[Carrot,Juice]}
The end result being that I'll want to paste the dictionary values in another column C that will look like this:
A Apple Apple/Banana
A Banana Apple/Banana
B Carrot Carrot/Juice
B Juice Carrot/Juice
I've been trying a nested loop through varrays but it hasn't been recognizing the relative positions of Column A and B. I was wondering what the best way to do this in VBA is?
Thanks.


