VAR_P

function VAR_P(args: number | string | ApiRange | number[] = null): number

Description

Calculates variance based on the entire population (ignores logical values and text in the population).

Parameters

argsnumber | string | ApiRange | number[]default: null

Up to 255 numeric values for which the variance will be calculated. The first argument is required, subsequent arguments are optional.

Returns

number

Try It



var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var result = oFunction.VAR_P(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
oWorksheet.GetRange("B2").SetValue(result);


Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).