Rediger

Del via


WorksheetFunction.ChiSq_Dist method (Excel)

Returns the chi-squared distribution.

Syntax

expression.ChiSq_Dist (Arg1, Arg2, Arg3)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Double X - The value at which you want to evaluate the distribution.
Arg2 Required Double Deg_freedom - The number of degrees of freedom.
Arg3 Optional Variant Cumulative - A logical value that determines the form of the function. If cumulative is True, ChiSq_Dist returns the cumulative distribution function; if False, it returns the probability density function.

Return value

Double

Remarks

If any argument is nonnumeric, ChiSq_Dist returns the #VALUE! error value.

If x is negative, ChiSq_Dist returns the #NUM! error value.

If deg_freedom is not an integer, it is truncated.

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.