Non repeating combinations in Excel

alancardoso

Board Regular
Joined
Nov 9, 2004
Messages
85
Guys,

is there any way to obtain non repeating combinations in Excel?

Ex: I have 15 numbers in cells A2 to O2 (with A2=1, B2=2, ... O2=15).

I´m trying to make Excel write to cells A3 to O3 non repeating combinations.
Order doesn´t matter.

However, the number of cells populated do matter.
So, for example, I would like to obtain in A3 to O3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 2 3 4 5 6 7 8 9 10 11 12 13 15
1 2 3 4 5 6 7 8 9 10 12 13 14 15
and so on.


The idea is that every time Excel writes A3 to O3 the new combination I would have another macro using this values, so:

(if I´m correct)

1) It would need to be a loop

or

2) I would need to have all combinations pasted in cells (the first combination in A3:O3, the second combination in A4:O4, and so on).

Thanks for the help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,216,146
Messages
6,129,125
Members
449,488
Latest member
qh017

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