I can't currently figure out how to do what I want..
Here is the issue. I have a data set with quite a few lines. There are essentially two aspects to the data. One is the location, the second is the item. Each location has a row for however many items it carries. So if location 1 carries three items, in the dataset it will have location 1, item 1 as an observation, location 1 item 2 as an observation etc..
What I want to figure out are the combinations where a select group of items are all carried at a certain selection of locations. Say I have 1000 locations and 100 items, I want to find the most amount of items I can that are all carried in as many locations as possible. If the solution is for example a group of 20 items that are all carried in 50 locations, that list would be the outcome.
Each location carries some items, but not all. What I want to determine is various mixtures of items that the most amount of locations ALL carry.
The solutions will ideally be churned out in a way that the solutions with the most amount of stores are populated first.
I want to find a way to have Excel loop through somehow and provide an output where it shows a mix of locations that can have the most shared items. The data only has two columns, A a list of locations, and B a list of the items. Each location will repeat the number of times it relates to numerous items. Maybe a way to have it only look for solutions with more than X number of stores, or X number of items as well inputted by the user if possible?
Any ideas?
Here is the issue. I have a data set with quite a few lines. There are essentially two aspects to the data. One is the location, the second is the item. Each location has a row for however many items it carries. So if location 1 carries three items, in the dataset it will have location 1, item 1 as an observation, location 1 item 2 as an observation etc..
What I want to figure out are the combinations where a select group of items are all carried at a certain selection of locations. Say I have 1000 locations and 100 items, I want to find the most amount of items I can that are all carried in as many locations as possible. If the solution is for example a group of 20 items that are all carried in 50 locations, that list would be the outcome.
Each location carries some items, but not all. What I want to determine is various mixtures of items that the most amount of locations ALL carry.
The solutions will ideally be churned out in a way that the solutions with the most amount of stores are populated first.
I want to find a way to have Excel loop through somehow and provide an output where it shows a mix of locations that can have the most shared items. The data only has two columns, A a list of locations, and B a list of the items. Each location will repeat the number of times it relates to numerous items. Maybe a way to have it only look for solutions with more than X number of stores, or X number of items as well inputted by the user if possible?
Any ideas?