Documentation/How Tos/Calc: COMBINA function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 10:33, 25 December 2007 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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.


See also:

COMBIN

Mathematical functions

Personal tools