WorksheetFunction.Prob method (Excel)
Returns the probability that values in a range are between two limits. If upper_limit is not supplied, returns the probability that values in x_range are equal to lower_limit.
Syntax
expression.Prob (Arg1, Arg2, Arg3, Arg4)
expression A variable that represents a WorksheetFunction object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Arg1 | Required | Variant | X_range - the range of numeric values of x with which there are associated probabilities. |
Arg2 | Required | Variant | Prob_range - a set of probabilities associated with values in x_range. |
Arg3 | Required | Double | Lower_limit - the lower bound on the value for which you want a probability. |
Arg4 | Optional | Variant | Upper_limit - the optional upper bound on the value for which you want a probability. |
Return value
Double
Remarks
If any value in prob_range ≤ 0 or if any value in prob_range > 1, Prob returns the #NUM! error value.
If the sum of the values in prob_range ≥ 1, Prob returns the #NUM! error value.
If upper_limit is omitted, Prob returns the probability of being equal to lower_limit.
If x_range and prob_range contain a different number of data points, Prob returns the #N/A error value.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.