generate all possible combinations of several lists

anao_

New Member
Joined
Aug 5, 2014
Messages
2
Hi,

I am trying to make all the combinations of the list below, given a certain criteria

List (Input)
Failure of 1 production lineFailure of 2 production lineFailure of 3 production line
Factory 1A1B1
Factory 2A2B2
Factory 3A3B3C3

<tbody>
</tbody>
The ouputs should be all the potential combinations from 1 production to all the 9 failing. The trick here is that I can't have combinations of any of the items in the B column (and following), if the item in the same row from the previous column is not envolved. For example, I want to exclude combinations that include B1 and do not include A1 (A2+B1 for example).

The output should look like this:

<tbody>
</tbody>

Output

Combinations of 1
Combinations of 2Combinations of 3Combinations of ...
A1A1+B1A1+B1+A2
A2A1+A2A1+A2+A3
A3A1+A3A1+A2+B2
A2+B2...
A3+B3

<tbody>
</tbody>

And give the condition above, these would not be valid outputs:

Combinations of 1
Combinations of 2Combinations of 3
B1A1+B2B1+B2+B3
B2A1+C3A1+B2+A3
B3......
C3

<tbody>
</tbody>

Many thanks in advance! Please let me know if this is not clear!

Best,
anao_
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

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