Combinations formula

jawad93

New Member
Joined
Jan 9, 2017
Messages
2
Hi there,

Need some help with a formula for combinations of items.

I have a list of items that are in groups like below:

[TABLE="width: 112"]
<colgroup><col width="56" span="2" style="width:42pt"> </colgroup><tbody>[TR]
[TD="width: 56"]Group[/TD]
[TD="width: 56"]Item[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Kiwi[/TD]
[/TR]
</tbody>[/TABLE]

And need a formula (without macros ideally) that can provide an output that has all the different combinations of items from different groups (the order they appear in doesn't matter):
[TABLE="width: 168"]
<colgroup><col width="56" span="3" style="width:42pt"> </colgroup><tbody>[TR]
[TD="width: 56"]A[/TD]
[TD="width: 56"]B[/TD]
[TD="width: 56"]C[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Pear[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Pear[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Pear[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Banana[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Banana[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Banana[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD][/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD][/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Am open to formatting the sheets differently as well, any advice would be great. Thank you so much!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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