COMBINA function
Returns the number of combinations when items can be chosen more than once (with repetition).
Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later
Excel 2013 and laterWorks in Google Sheets
Syntax
COMBINA(number, number_chosen)| Argument | What it means | |
|---|---|---|
number | Required | The number of item types available. |
number_chosen | Required | How many items are chosen; can be larger than number. |
Returns: COMBIN(number + number_chosen − 1, number_chosen).
How COMBINA works
COMBINA counts selections where the order does not matter but the same type may be chosen repeatedly: three scoops of ice cream from 8 flavours (chocolate twice is allowed), a box of 4 doughnuts from 6 kinds, or how many ways an order of 10 identical units can be spread over 3 warehouses.
Mathematically it equals COMBIN(n + k − 1, k), the "stars and bars" count. Unlike COMBIN, number_chosen may exceed number. Decimals are truncated and negative values return #NUM!.
Examples
1Ice-cream cups with three scoops
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Shop | Flavours | Scoops | |
| 2 | Gelateria | 8 | 3 | 120 |
Result: 120
Allowing repeated flavours, there are 120 different cups (COMBIN would give only 56 without repeats).
2Mixed boxes of doughnuts
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Bakery | Kinds | Per box | |
| 2 | Box of 4 | 6 | 4 | 126 |
Result: 126
126 possible boxes, from four of the same kind to four different ones.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | A negative argument, or number 0 with number_chosen above 0. | Check the inputs. |
Tips
- COMBINA(n, k) = COMBIN(n + k − 1, k), handy in versions before 2013.
Google Sheets
COMBINA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
COMBINA in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | KOMBINA |
| Dutch | COMBIN.A |
| Finnish | KOMBINAATIOA |
| German | KOMBINATIONEN2 |
| Hungarian | KOMBINÁCIÓK.ISM |
| Italian | COMBINAZIONE.VALORI |
| Norwegian (Bokmål) | KOMBINASJONA |
| Polish | KOMBINACJE.A |
| Portuguese (Portugal) | COMBIN.R |
| Russian | ЧИСЛКОМБА |
| Swedish | KOMBINA |
| Turkish | KOMBİNASYONA |