Difference between revisions of "Documentation/How Tos/Calc: COMBINA function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
Line 3: | Line 3: | ||
== COMBINA == | == COMBINA == | ||
Returns the number of ordered combinations of a subset of items. | Returns the number of ordered combinations of a subset of items. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 16: | Line 15: | ||
:: <tt>'''setsize!/(setsize-subsetsize)!'''</tt> | :: <tt>'''setsize!/(setsize-subsetsize)!'''</tt> | ||
− | |||
=== Example: === | === Example: === | ||
<tt>'''COMBINA(3,2)'''</tt> | <tt>'''COMBINA(3,2)'''</tt> | ||
: returns <tt>'''6'''</tt>. | : returns <tt>'''6'''</tt>. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 07:02, 2 March 2008
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.