=CHISQ.DIST.RT(x,deg_freedom)
=CHISQ.DIST.RT(5, 8)
This would return the probability of the chi-squared distribution with 5 degrees of freedom and a chi-square statistic of 8.
=CHISQ.DIST.RT(2, 5)
This would return the probability of the chi-squared distribution with 2 degrees of freedom and a chi-square statistic of 5.
The CHISQ.DIST.RT function returns the right-tailed probability of the chi-squared distribution, which is commonly used in a χ2 test. It will throw an error if any of the arguments are not a number.