Documentation/How Tos/Calc: COMBINA function
From Apache OpenOffice Wiki
COMBINA
Returns the number of ordered combinations of a subset of items.
Syntax:
COMBINA(setsize; subsetsize)
- setsize is the number of items in the set.
- subsetsize is the number of items to choose from the set.
- COMBINA returns the number of ways to choose these items, where the order of choosing is important. For example if there are 3 items A, B and C in a set, you can choose 2 items in 6 different ways, namely AB, BA, AC, CA, BC and CB.
- COMBINA implements the formula:
- setsize!/(setsize-subsetsize)!
Example:
COMBINA(3,2)
- returns 6.