CHITEST(actual_range,theoretical_range)
CHITEST function returns the test for independence of chi-squared distribution.
actual_range is a range that contains the observed data points. theoretical_range is a range that contains the expected values of the data points.