Hello everyone; If I could please ask for a little further help on the wonderful formula/macro of Mr shg found here https://app.box.com/s/47b28f19d794b25511be ; I was able to easily customize this table and add some more columns etc. and it works like a charm. Thank you shg! The next thing I'm trying to do is apply some filter(s) to the produced permutation list.
So say on that list, Egg roll and Rice noodles don't (cannot) go together and also (there could be more impossible combinations) Wonton Soup, Roast Duck and Fortune Cookie also cannot go together. This was not hard to do using filters; I was able to apply the filters one set after the other and colour the first impossibility group say red, next group say blue etc. and also create another row on top called 'Filtered' as seen here:
[TABLE="width: 480"]
<tbody>[TR]
[TD]Filtered:
[/TD]
[TD]77
[/TD]
[TD]
[/TD]
[TD]3
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]Cum:
[/TD]
[TD] 90
[/TD]
[TD] 30
[/TD]
[TD] 6
[/TD]
[TD] 2
[/TD]
[/TR]
[TR]
[TD]Cnt:
[/TD]
[TD] 3
[/TD]
[TD] 5
[/TD]
[TD] 3
[/TD]
[TD] 2
[/TD]
[/TR]
[TR]
[TD]Header:
[/TD]
[TD]Appetizer
[/TD]
[TD]Main Course
[/TD]
[TD]Rice
[/TD]
[TD]Dessert
[/TD]
[/TR]
[TR]
[TD]Inputs:
[/TD]
[TD]Dumplings
[/TD]
[TD]Kung Pao Shrimp
[/TD]
[TD]Fried rice
[/TD]
[TD]Fortune Cookie
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]Egg roll
[/TD]
[TD]Orange Beef
[/TD]
[TD]Steamed rice
[/TD]
[TD]Ice Cream
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]Wonton soup
[/TD]
[TD]Pork Lo Mein
[/TD]
[TD]Rice noodles
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]Roast Duck
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]Szechuan Chicken
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
So then my filtered list would drop down to 77 rows instead of 90 etc. The lists I'm working on are in the thousands of rows and 8 or more columns and the filters obviously are crucial.
So would it be possible to write some vba code that would automatically do this: as soon as you colour the impossibility items the same colour (egg roll and rice noodles red) it would say 10 in the far right row of Filtered: and repopulate the list and so on.
Sorry for the long explanation. Thank you.
So say on that list, Egg roll and Rice noodles don't (cannot) go together and also (there could be more impossible combinations) Wonton Soup, Roast Duck and Fortune Cookie also cannot go together. This was not hard to do using filters; I was able to apply the filters one set after the other and colour the first impossibility group say red, next group say blue etc. and also create another row on top called 'Filtered' as seen here:
[TABLE="width: 480"]
<tbody>[TR]
[TD]Filtered:
[/TD]
[TD]77
[/TD]
[TD]
[/TD]
[TD]3
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]Cum:
[/TD]
[TD] 90
[/TD]
[TD] 30
[/TD]
[TD] 6
[/TD]
[TD] 2
[/TD]
[/TR]
[TR]
[TD]Cnt:
[/TD]
[TD] 3
[/TD]
[TD] 5
[/TD]
[TD] 3
[/TD]
[TD] 2
[/TD]
[/TR]
[TR]
[TD]Header:
[/TD]
[TD]Appetizer
[/TD]
[TD]Main Course
[/TD]
[TD]Rice
[/TD]
[TD]Dessert
[/TD]
[/TR]
[TR]
[TD]Inputs:
[/TD]
[TD]Dumplings
[/TD]
[TD]Kung Pao Shrimp
[/TD]
[TD]Fried rice
[/TD]
[TD]Fortune Cookie
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]Egg roll
[/TD]
[TD]Orange Beef
[/TD]
[TD]Steamed rice
[/TD]
[TD]Ice Cream
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]Wonton soup
[/TD]
[TD]Pork Lo Mein
[/TD]
[TD]Rice noodles
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]Roast Duck
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]Szechuan Chicken
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
So then my filtered list would drop down to 77 rows instead of 90 etc. The lists I'm working on are in the thousands of rows and 8 or more columns and the filters obviously are crucial.
So would it be possible to write some vba code that would automatically do this: as soon as you colour the impossibility items the same colour (egg roll and rice noodles red) it would say 10 in the far right row of Filtered: and repopulate the list and so on.
Sorry for the long explanation. Thank you.