Math & Trig

COMBINA Formula

COMBINA returns the number of combinations with repetitions allowed — how many ways you can choose k items from n types when you can pick the same type more than once. It calculates (n+k-1)!/(k!(n-1)!). Use it for problems like distributing identical items into groups, or selecting from a menu where you can order the same dish multiple times.

Syntax

COMBINA(n, k)
ParameterDescription
n Parameter of the COMBINA function.
k Parameter of the COMBINA function.
Try COMBINA in Viztab — free, no signup

Examples

Ice cream scoops

Formula
=COMBINA(5, 3)
Returns 35. If there are 5 flavors and you're getting a 3-scoop cone (repeats allowed, order doesn't matter), there are 35 possible combinations.

Distributing items

Formula
=COMBINA(4, 6)
Returns 84. There are 84 ways to distribute 6 identical balls into 4 distinct boxes.

Two from three types

Formula
=COMBINA(3, 2)
Returns 6. Choosing 2 items from 3 types with repetition: AA, AB, AC, BB, BC, CC.

Common Errors

#NUM!

Both arguments must be non-negative. Negative values return #NUM!.

#VALUE!

Non-numeric arguments return #VALUE!.

Tips

Stars and bars

COMBINA solves the classic 'stars and bars' problem in combinatorics: distributing k identical items among n distinct bins.

Larger than COMBIN

COMBINA(n,k) is always >= COMBIN(n,k) because allowing repetitions creates more possibilities.

Real-world use

Portfolio selection (can buy multiple shares of the same stock), menu ordering (can order the same dish twice), or dice combinations.

Try COMBINA in Viztab

Import your data and use COMBINA with 370+ other formulas. No signup required.

Open Viztab

Related Formulas