Further help on Cartesian Product (shg)

Fusion33

New Member
Joined
Nov 30, 2015
Messages
5
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.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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