Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.59 KB

Excel.WorksheetFunction.Permut.md

File metadata and controls

53 lines (30 loc) · 1.59 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WorksheetFunction.Permut method (Excel)
vbaxl10.chm137203
vbaxl10.chm137203
Excel.WorksheetFunction.Permut
dbef7a0f-bab9-83c0-9840-bb5948114b5e
05/24/2019
medium

WorksheetFunction.Permut method (Excel)

Returns the number of permutations for a given number of objects that can be selected from number objects. 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.

Syntax

expression.Permut (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Double Number - an integer that describes the number of objects.
Arg2 Required Double Number_chosen - an integer that describes the number of objects in each permutation.

Return value

Double

Remarks

Both arguments are truncated to integers.

If number or number_chosen is nonnumeric, Permut returns the #VALUE! error value.

If number ≤ 0 or if number_chosen < 0, Permut returns the #NUM! error value.

If number < number_chosen, Permut returns the #NUM! error value.

The equation for the number of permutations is   Formula

[!includeSupport and feedback]