Skip to main content

GAUSS

Calculates the probability that a member of a standard normal population will fall between the mean and arg1 standard deviations from the mean.

Syntax

expression.GAUSS(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value for which the distribution will be calculated.

Returns

number

Example

Find the probability for a standard normal distribution in a spreadsheet.

// How do I calculate the area under the normal distribution curve in a spreadsheet?

// Get the cumulative normal probability for a given standard deviation value in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.GAUSS(2);
worksheet.GetRange("B2").SetValue(ans);