Combine all possible combinations from single column without vba

andrew_milonavic

Board Regular
Joined
Nov 16, 2016
Messages
98
Hi Everyone,

I'd like to combine all possible combinations (text) from a single column into another.

I was able to find this formula
Code:
=IF(ROW()-ROW($F$1)+1>COUNTA(A:A)*COUNTA(B:B),"",INDEX(A:A,INT((ROW()-ROW($F$1))/COUNTA(B:B)+1))&INDEX(B:B,MOD(ROW()-ROW($F$1),COUNTA(B:B))+1))
which works perfectly for two columns of data but I wasn't able to make it work for just one column of data.

Hope you guys can help!

Thanks

Andrew
 

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.
I would like to combine four or maybe five but I need a bit of twist if it's possible. The twist is that I would like to do only unique combinations like I've tried to show above. I don't know if this is possible, but I'm hoping someone in here can help me create the macro or tell me that it's impossible.


[TABLE="width: 500"]
<tbody>[TR]
[TD]Antelope
[/TD]
[TD]Antelope,Bear,Chicken,Dog,Elephant
[/TD]
[/TR]
[TR]
[TD]Bear
[/TD]
[TD]Antelope,Chicken
[/TD]
[/TR]
[TR]
[TD]Chicken
[/TD]
[TD]Antelope,Dog
[/TD]
[/TR]
[TR]
[TD]Dog
[/TD]
[TD]Antelope,Elephant
[/TD]
[/TR]
[TR]
[TD]Elephant
[/TD]
[TD]Antelope,Frog
[/TD]
[/TR]
[TR]
[TD]Frog
[/TD]
[TD]Bear,Dog
[/TD]
[/TR]
</tbody>[/TABLE]

I hope I've explained it well.
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,224
Members
453,025
Latest member
Hannah_Pham93

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