[Table of Contents] [docx version]

SpreadsheetML Reference Material - Table of Contents

PERMUT

Syntax:

PERMUT ( number , number-chosen )

Description: Computes the number of permutations for number-chosen objects that can be selected from number objects. [Note: A permutation is any set or subset of objects or events where internal order is significant. Permutations are different from combinations, for which the internal order is not significant. Use this function for lottery-style probability calculations. end note]

Mathematical Formula:

Arguments:

Name

Type

Description

number

number 

The total number of items available, truncated to integer.

number-chosen

number

The number of items in each permutation, truncated to integer.

 

Return Type and Value: number – The number of different permutations of number-chosen in number.

However, if

number < 0, #NUM! is returned.

number-chosen < 0, #NUM! is returned.

number < number-chosen, #NUM! is returned.

[Example:

PERMUT(8,2) results in 56
PERMUT(10,4) results in 5040
PERMUT(6,5) results in 720

end example]