CHISQ.TEST in FreeOffice PlanMaker: Syntax and Worked Examples
Use CHISQ.TEST and legacy CHITEST in PlanMaker to compare observed and expected counts and interpret the returned p-value.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer
For the 2×2 observed counts and expected counts below, the independently calculated Pearson statistic is 4, while its right-tail probability with one degree of freedom is approximately 0.0455002639. The native function returned 0.045500300507352 approximately, identifying a right-tail probability output rather than the statistic 4. These two quantities are not interchangeable.
The official pages describe a chi-square test, with the legacy page using the broad phrase “test statistics.” The concrete 2×2 native check below resolves the returned quantity for these inputs.
Syntax and inputs
=CHISQ.TEST(ObservedValues, ExpectedValues)
=CHITEST(ObservedValues, ExpectedValues)
Both arguments are required ranges. For the example, provide numeric observed counts and matching expected counts in the same 2×2 arrangement. Expected values are not percentages, category labels or a list of desired outcomes.
The function accepts an expected table; it does not mean you can skip constructing and checking that table. The documented signature has no extra argument for adjusting degrees of freedom after fitting model parameters.
Step-by-step: construct the 2×2 example
Enter observed values in A2:B3 and expected values in D2:E3:
| Row | A observed | B observed | D expected | E expected |
|---|---|---|---|---|
| 2 | 20 | 30 | 25 | 25 |
| 3 | 30 | 20 | 25 | 25 |
Each observed row totals 50, each column totals 50 and the grand total is 100. Under an independence model, each expected cell is row total×column total/grand total=50×50/100=25.
Enter =CHISQ.TEST(A2:B3,D2:E3) outside those ranges. The corresponding legacy call is =CHITEST(A2:B3,D2:E3).
Independently compute the Pearson statistic:
sum((observed−expected)^2/expected)
= 4×(5^2/25)
= 4
For a 2×2 independence table, degrees of freedom are (2−1)×(2−1)=1. The independent right-tail probability is erfc(√(4/2)), approximately 0.0455002638964. The observed value differs from this independent probability by about 3.66×10^-8, and is clearly a probability output rather than the statistic 4.
Controls and interpretation
In A6:B7 and D6:E7, enter 25 in every cell. The observed and expected tables then coincide, giving statistic 0 and mathematical right-tail probability 1. This is a useful arithmetic control; it is not evidence that a null hypothesis has a 100% probability of being true.
For a test probability, describe it relative to the stated null model and sampling assumptions. It is not the probability that the null hypothesis is true, nor a measure of the practical importance of an association. This guide does not supply a decision rule or recommend acting on a single threshold.
An independence interpretation requires an appropriate count-data design. Paired observations, dependent records, unsuitable expected counts or fitted parameters can change the validity of the reference distribution. The formula does not diagnose those issues automatically.
Invalid tables and bounded error checks
The example uses strictly positive expected counts. A zero expected count makes the ordinary Pearson contribution undefined when used as a denominator. For the native zero-expected case, A10:B11 contained the original observed counts and D10:E11 contained 0,25;25,25. Both spellings returned #DIV/0!.
Supplying A2:B3 against D2:D3 mismatches dimensions. Both spellings returned #N/A for this case in the tested build. Do not silently resize or pad a table merely to obtain a number; correct the correspondence between categories first.
The examples do not establish every blank, text or embedded-error rule, or the degrees of freedom used for every possible range shape. They verify a clearly defined 2×2 case and scoped errors.
Legacy name and compatibility
The official CHITEST page identifies CHISQ.TEST as an identical newer function. Both spellings are checked here. The current help does not mark CHITEST retired or deprecated.
The modern function is documented for Excel 2010 or later. Check the actual target version, formulas and data when exchanging a workbook; no export compatibility test is implied.
Native p-values and invalid-table results
Eight paired formulas were calculated using the exact typed count blocks in FreeOffice PlanMaker 2024 revision F1238.1005. Both names returned 0.045500300507351994 for the first 2×2 table and 1 when observed and expected tables were equal. The first result is about 3.6611×10^-8 above the independent right-tail probability; it is not the statistic 4. The mismatched ranges returned #N/A, and the zero expected cell returned #DIV/0!. All eight expressions and all 24 numeric input cells were retained after native PMDX save and reopen. These checks do not establish behavior for every range shape or data type.

Selected J2 displays the p-value rounded to 0.0455. The input tables remain visible in A:E. J4:J5 show 1, J6:J7 show #N/A and J8:J9 show #DIV/0!.
Version and verification scope
The official FreeOffice PlanMaker 2024 reference was checked October 18, 2026. The installed application is FreeOffice PlanMaker 2024 revision F1238.1005. The original introduction version is not established by this evidence; the current reference does not identify the function as deprecated or retired. No availability claim for a different edition or a 2026 release is implied.
The native section identifies the exact tested subset and values from revision F1238.1005 after native PMDX save and reopen. Independent mathematical values and observed numerical approximations are distinguished. Cell-reference walkthroughs and extra arithmetic controls were not additional native cases unless expressly identified. File-exchange notes are vendor guidance, not an Excel-export test. English formulas in this guide use commas; use the separators required by your formula settings.