Not Sure How To Do a Chi-Square Test in Excel?

QI Macros add-in can do chi-square tests for you in seconds!

Chi-Square Table using QI Macros

  1. Select your data.
  2. Click on QI Macros menu > Statistical Tools > Regression > Chi-Square.
  3. QI Macros will do the math and interpret the values for you.

Chi-Square Test of a Contingency Table

A Chi Square test evaluates if two variables are independent of each other. We've all taken surveys and probably wondered what happened. A Chi Square test of a contingency table helps identify if there are differences between two or more demographics. Consider the following example.


Note: Excel does not do table tests; QI Macros adds this functionality.

Chi Square Test Example Using QI Macros - Men vs. Women

We can develop a null hypothesis (H0) that point of view and gender are independent and an alternate hypothesis (Ha) that gender and point of view are related:

  • H0 - two variables (gender and views) are independent
  • Ha - two variables are dependent (views depend on gender)

Now, conduct the survey and enter the number of responses into Excel. As you can see, men seem to agree more than the women do, but is it statistically different?

Data set diagram

To run a chi square test using QI Macros, select the data click on QI Macros Menu > Statistical Tools > Regression and Other Stats > Chi Squared.


QI Macros will will calculate the values and interpret the results for you:

Chi Square Table Results with QI Macros

Note that we don't need the same number of responses from each group to get a result.
Individual Chi-Square values are listed below the table. They add up to the total Chi-Square value in F1.

Interpreting the Chi Square results

p value < a Reject the null hypothesis Variables are Related
p value > a Cannot Reject the null hypothesis (Accept the null hypothesis) Variables are Independent

In the above results the p value is 0.00031.

If the p value is less than the significance (e.g., a=0.05), we can reject the null hypothesis that views are independent of gender. Gender and point of view are related; men and women have different points of view.

QI Macros also contains Chi Square Goodness of Fit Tests and Fisher Exact Test for 2X2 Tables

Stop Struggling with Chi-Square Tests!
Start conducting Chi-Square Tests in just minutes.

Download a free 30-day trial. Run Chi-Square Tests now!

QI Macros can draw these charts too!