Chi-square probability
y = CHISQ(x,n) x = CHISQINV(y,n)
The probability function:
where
Given y = and n, then x is found from: CHISQINV(y,n) = x