TRY NEW VERSION

PERMUT

PERMUT(arg1, arg2) → { number }

Returns the number of permutations for a given number of objects that can be selected from the total objects.

Parameters:

Name Type Description
arg1 number

The total number of objects.

arg2 number

The number of objects in each permutation.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.PERMUT(32, 2));
builder.SaveFile("xlsx", "PERMUT.xlsx");
builder.CloseFile();

Resulting document