NORMINV

function NORMINV(arg1: number = null, arg2: number = null, arg3: number = null): number

Description

Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation.

Parameters

arg1numberdefault: null

A probability corresponding to the normal distribution, a number between 0 and 1 inclusive.

arg2numberdefault: null

The arithmetic mean of the distribution.

arg3numberdefault: null

The standard deviation of the distribution, a positive number.

Returns

number

Try It


const oWorksheet = Api.GetActiveSheet();
var valueArr = [0.34, 7, 3];

// Place the numbers in cells
for (var i = 0; i < valueArr.length; i++) {
 oWorksheet.GetRange("A" + (i + 1)).SetValue(valueArr[i]);
}

//method params
var probability = oWorksheet.GetRange("A1").GetValue();
var mean = oWorksheet.GetRange("A2").GetValue();
var standardDeviation = oWorksheet.GetRange("A3").GetValue();
var oFunction = Api.GetWorksheetFunction();
var inv = oFunction.NORMINV(probability, mean, standardDeviation);
oWorksheet.GetRange("C1").SetValue(inv);

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).