What Is Cross-Tabulation?
Cross-tabulation is a table that shows how the answers to one survey question split across the answers to another, so you can see whether different groups answered differently. Also called a crosstab or a contingency table.
Cross-tabulation splits one survey question’s answers by another’s, so you can compare groups. A result for everyone at once hides most of what’s useful. “65% are satisfied” is one number. Split it by how people found you, by plan, by region or by department, and you find the group that’s pulling it up or down. Cross-tabulation is that split: one question’s answers in the rows, another question’s answers in the columns, and a count in every cell where the two meet.
Researchers call the table a crosstab, a cross tab or a contingency table. In market research, the questions across the top are often called banner variables, and a set of them side by side is a banner table.
Which percentage to read
A crosstab can show three percentages in each cell, and they answer different questions:
- Column percent is the cell’s share of its column. Read it when the columns are the groups you’re comparing: “of people who came through a friend, how many are satisfied?”
- Row percent is the cell’s share of its row: “of satisfied customers, how many came through a friend?”
- Total percent is the cell’s share of everyone in the table.
The usual rule is to work out the percentages within the groups you’re comparing, then compare across them. In the example on this page, the groups are the columns, so column percent is the one to read: 80% of friend referrals are satisfied, against 60% from search and 55% from social.
Is the difference real?
Some difference between groups turns up in any survey, just from who happened to answer. The chi-squared test of independence checks whether the gaps in a table are bigger than chance would usually produce. It works out the count each cell would have if the two questions were unrelated, adds up how far the real counts sit from those, and turns the total into a p-value. Below 0.05 is the usual cut-off for calling the result statistically significant.
A significant test says the two questions are related somewhere in the table. To find where, look at each cell’s distance from its expected count. Statistics packages report this as the adjusted residual, and a cell beyond about ±2 is one that stands out on its own. Tables with many cells need a stricter bar, since some cells will pass ±2 by chance; SurveyRock raises it as the table grows. In the example, the friend column’s satisfied cell is at +3.9.
How to make a crosstab in Excel
With one row per respondent and one column per question, a PivotTable builds the table. Put one question in Rows, the other in Columns, and any field in Values set to count. To see percentages, right-click a value and choose Show Values As, then % of Column Total.
For the test, Excel’s CHISQ.TEST takes the range of observed counts and a range of expected counts you build yourself (row total × column total ÷ grand total, cell by cell) and returns the p-value. It works, but it’s slow to set up for every table, and nothing warns you when cells are too small for the result to hold.
Making it worth reading
- Collect enough answers per group. Splitting 200 responses six ways leaves about 33 in each group, and smaller differences won’t show up as significant. Plan your sample size for the smallest group you’ll want to report on.
- Decide on the splits before you look. Crossing every question by every other until something turns significant finds chance results. Pick the two or three comparisons that matter to the decision you’re making.
- Protect small groups. On an employee survey, a cell with three people in it can identify them. Hide cells below a minimum size, and check that a hidden number can’t be worked out from the totals.
Example
| Search | A friend | Social | Total | |
|---|---|---|---|---|
| Satisfied | 60 (60%) | 80 (80%) | 55 (55%) | 195 (65%) |
| Not satisfied | 40 (40%) | 20 (20%) | 45 (45%) | 105 (35%) |
- Expected count if the two were unrelated
- 195 × 100 ÷ 300=65 satisfied per columnEach cell's expected count is its row total times its column total, divided by everyone. Not satisfied works out at 35.
- Chi-squared
- Σ (observed − expected)² ÷ expected, over all six cells=15.4The friend column alone adds 9.9 of it: (80 − 65)² ÷ 65 plus (20 − 35)² ÷ 35.
- Degrees of freedom
- (2 rows − 1) × (3 columns − 1)=2
- Is it likely to be chance?
- χ² = 15.4 with 2 degrees of freedom gives p ≈ 0.0005, below 0.05=SignificantIf source and satisfaction were unrelated, a table this uneven would turn up about 5 times in 10,000.
People who came through a friend stand out most: 80% satisfied against the 65% you'd expect, an adjusted residual of +3.9. Social, at −2.6, is the other cell past ±2. The test says the two answers are related in these responses. It doesn't say a referral makes anyone more satisfied.
What it does not tell you
- It shows association, not cause. A third factor, such as which plan people bought, can sit behind both answers.
- The chi-squared test is unreliable when cells are too small. The common rule is an expected count of at least 5 in 80% of cells, and none below 1.
- Each extra table is another test. Run twenty, and about one will read as significant by chance alone at the 0.05 cut-off.
- The standard test assumes each person is counted once. A question that takes several answers needs a different method.
Sources
- Agresti, A. (2019). An Introduction to Categorical Data Analysis (3rd ed.). John Wiley & Sons.
- Cochran, W. G. (1954). Some methods for strengthening the common χ² tests. Biometrics, 10(4), 417–451.
- Microsoft Support. CHISQ.TEST function.
How to Run a Crosstab in SurveyRock
On the Growth plan and above, open a survey's responses and choose Crosstab. Pick the question for the rows and up to three for the columns, and SurveyRock draws the table with row, column and total percentages and runs the chi-squared test underneath. When the table tests significant, cells that differ clearly from what you'd expect turn amber. Cells with fewer than 5 answers are withheld, along with any cell that would let a hidden number be worked out from the totals, and the table exports to CSV or Excel.