Take a column of cells and show all possible combinations of 3 cells from that column

dayday123

New Member
Joined
Mar 12, 2014
Messages
24
Hello -

I am trying to get excel to generate a list of all possible combinations of 3 from a single column of data. I have searched a lot online for this and see a number of options of creating unique combinations when looking at more than one column of data but what I am trying to do is look at a single column and just specify the number of elements I am looking to combine.

For example I have a column of data as such:
Column A:
Product 1
Product 2
Product 3
Product 4

What i am looking for excel to generate is a list of all combinations of 3 products. So the result would look like this:
Column B:
Product 1, Product 2, Product 3
Product 1, Product 2, Product 4
Product 1, Product 3, Product 4

Ideally the number of elements I am looking to combine would be a variable so if I had a list of 100 products I could then update the formula to give me a list of all combinations of 4 products or 5 products etc.

Does anyone know a formula (no VBA as i need to put this in google sheets) that I can use for this? I will do the research just not sure where to start as everything I see refers to combining different rows of data.

Thanks so much in advance!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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