Estimates variance based on a sample (ignores logical values and text in the sample).
Name | Type | Description |
args | number | string | ApiRange | Array.<number> | Up to 255 numeric values for which the variance will be calculated. The first argument is required, subsequent arguments are optional. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); var result = oFunction.VAR(1, 4, 2, 6, 0, 1, 3, 8, 0, 0, 6, 10, 0, 0, 7, 12) oWorksheet.GetRange("B2").SetValue(result); builder.SaveFile("xlsx", "VAR.xlsx"); builder.CloseFile();