WorksheetFunction.BinomDist (Excel)

Returns the individual term binomial distribution probability.

Use BinomDist in problems with a fixed number of tests or trials, when the outcomes of any trial are only success or failure, when trials are independent, and when the probability of success is constant throughout the experiment. For example, BinomDist can calculate the probability that two of the next three babies born are male. Number_s and trials are truncated to integers. If number_s, trials, or probability_s is nonnumeric, BinomDist generates an error. If number_s < 0 or number_s > trials, BinomDist generates an error. If probability_s < 0 or probability_s > 1, BinomDist generates an error. The binomial probability mass function is where is COMBIN(n,x). The cumulative binomial distribution is

BinomDist (Arg1, Arg2, ..., Arg4)

Dim dblArg1 As Double: dblArg1 = 
Dim dblArg2 As Double: dblArg2 = 
Dim dblArg3 As Double: dblArg3 = 
Dim dblBinomDist As Double
dblBinomDist = WorksheetFunction.BinomDist(Arg1:=dblArg1, Arg2:=dblArg2, Arg3:=dblArg3, Arg4:=True)


Arg1, Arg2, ..., Arg4

Arg1 (Double) - The number of successes in trials.

Arg2 (Double) - The number of independent trials.

Arg3 (Double) - The probability of success on each trial.

Arg4 (Boolean) - A logical value that determines the form of the function. If cumulative is True, BinomDist returns the cumulative distribution function, which is the probability that there are at most number_s successes; if False, it returns the probability mass function, which is the probability that there are number_s successes.