Returns the number of permutations for a given number of objects that can be selected from the total objects.
Name | Type | Description |
arg1 | number | The total number of objects. |
arg2 | number | The number of objects in each permutation. |
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();