Excel function

COMBINfunction

Returns the number of combinations (ways to choose, order does not matter).

All versions
=COMBIN(A2, 2)
A
B
1
2
3
4
5
6
7

Click a cell in the table to change number. Click 15 and set number_chosen to 3, 15 and 16. 16 is more than the total, so you get #NUM!. Try breaking it on purpose to see the errors.

Result

3

number
A2You can also click a cell in the table

The cell with the number to calculate. Click another value in the table.

number_chosen

How many items to choose. More than the total returns #NUM!.

What is the COMBIN function?

=COMBIN(number, number_chosen)

COMBIN returns the number of combinations: ways to choose items when order does not matter, so A·B and B·A count once.

Both arguments are truncated. A negative value, or choosing more than the total, returns #NUM!.

Arguments

number
The total number of items.
number_chosen
How many of them to choose.

COMBIN examples

  1. Example 1. 2 of 8 people

    =COMBIN(8, 2)

    An example from Microsoft: 28.

  2. Example 2. A 6-of-45 lottery

    =COMBIN(45, 6)

    8,145,060 combinations.

  3. Example 3. All of them

    =COMBIN(5, 5)

    1.

Common mistakes

FAQ

With repetition?
Use COMBINA for combinations and PERMUTATIONA for permutations with repetition.
How do I get a probability?
Divide the favorable cases by the total (the COMBIN result).