This documentation is archived and is not being maintained.

WorksheetFunction.NegBinomDist Method

Office 2007
Returns the negative binomial distribution. NEGBINOMDIST returns the probability that there will be number_f failures before the number_s-th success, when the constant probability of a success is probability_s. This function is similar to the binomial distribution, except that the number of successes is fixed, and the number of trials is variable. Like the binomial, trials are assumed to be independent.


expression.NegBinomDist(Arg1, Arg2, Arg3)

expression   A variable that represents a WorksheetFunction object.


NameRequired/OptionalData TypeDescription
Arg1RequiredDoubleNumber_f - the number of failures.
Arg2RequiredDoubleNumber_s - the threshold number of successes.
Arg3RequiredDoubleProbability_s - the probability of a success.

Return Value


For example, you need to find 10 people with excellent reflexes, and you know the probability that a candidate has these qualifications is 0.3. NEGBINOMDIST calculates the probability that you will interview a certain number of unqualified candidates before finding all 10 qualified candidates.

  • Number_f and number_s are truncated to integers.
  • If any argument is nonnumeric, NEGBINOMDIST returns the #VALUE! error value.
  • If probability_s < 0 or if probability > 1, NEGBINOMDIST returns the #NUM! error value.
  • If number_f < 0 or number_s < 1, NEGBINOMDIST returns the #NUM! error value.
  • The equation for the negative binomial distribution is:



    x is number_f, r is number_s, and p is probability_s.