Generating different combinations?

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
How do I get excel to all return all 1000 different combinations of 0-9 as a 3 number sets to appear in the A,B, C columns:
for example:
A1=0,B1=0,C1=0
A2=0,B2=0,C2=1
and so on,
0,0,2
0,0,3
0,0,4
0,0,5
0,0,6
0,0,7
0,0,8
0,0,9
0,1,1
0,1, 2

A column is 0-9, B column is 0-9 and C column is 0-9
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

SIXTH SENSE

Well-known Member
Joined
Oct 29, 2003
Messages
1,883
Brew said:
How do I get excel to all return all 1000 different combinations of 0-9 as a 3 number sets to appear in the A,B, C columns:


A column is 0-9, B column is 0-9 and C column is 0-9

you must be kidding in taking 1000 combinations of 0-9!
there are only 120 combinations for these and 720 Permutations.
try
=COMBIN(10,3)=120
and
=PERMUT(10,3)=720
:devilish:
 

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
Thanks.
Now how do I get excel to generate only accept the unique number combinations. 1-2-3 is the same as 3-2-1. The one that is generated first is accepted. The other is rejected. Using the 0-9 digits for cells E,F,G. It should be 220 combinations.
 

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
Great thanks fairwinds.
Now how do I take the list in H I J and relist them automatically in L M O cells without blank rows as in row 11.
So that the results are in consecutives rows.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,334
Messages
5,769,473
Members
425,553
Latest member
chrisc297

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
Top