# Number combinations

#### helpmeplz

##### New Member
What would the formula be to calculate the number of combinations of six out of 12 total numbers?

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
In XL help type in 'combination' (w/o the quotes).

Oh, that was easy. I'm embarrassed! Thanks!

Now the hard part: What calculation can determine what those combinations are?

Thanks a bunch!

Ha, ha. Wow! That is some VBA code! Far over my head. I get a compiler error on thi line:

= True Or BufferPtr = UBound(Buffer()) Then......

I can handle some basic VBA, but I don't have a clue about this one.

Well, I expedited an long planned project. The page, in a not-quite-finished state is
Powerset, Subset, and Combinations & Permutations
http://www.tushar-mehta.com/excel/tips/powerset.html

To use UDFSubset as an XL function, enter the elements of your set (the 12 numbers) in a column. Enter the number of selections you want (6) in some other cell. Then, select COMBIN(12,6) cells in a column and *array enter* =UDFSubset({range with 12 numbers},{cell with # to select},",")

Replies
9
Views
547
Replies
1
Views
281
Replies
9
Views
179
Replies
6
Views
269
Replies
2
Views
543

1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

### 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?

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