Skip to main content

CRITBINOM

Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.

Syntax

expression.CRITBINOM(arg1, arg2, arg3);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe number of Bernoulli trials.
arg2RequiredApiRange | ApiName | numberThe probability of success on each trial, a number between 0 and 1 inclusive.
arg3RequiredApiRange | ApiName | numberThe criterion value, a number between 0 and 1 inclusive.

Returns

number

Example

Find the smallest number that meets your probability threshold in a spreadsheet.

// What is the minimum value where cumulative probability exceeds your target in a spreadsheet?

// Identify the threshold value for a binomial distribution in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.CRITBINOM(678, 0.1, 0.007);
worksheet.GetRange("B2").SetValue(ans);