Excel crosstab
How to make a crosstab in Excel, and test it
In Excel, a crosstab is a PivotTable with one variable in Rows and one in Columns. Below are the exact steps, the column-percentage setting and a COUNTIFS alternative, then where Excel stops: no chi-square on the pivot, no significance flags, no sparse-cell warnings. Open the same workbook here for those.
How results are checked
Named statistical review pending. Selected automated reference cases are published on the validation page.Open your data file
CSV, Excel, SPSS, Stata, SAS, R, Parquet, JSON, Triple-S, OpenDocument, Arrow/Feather or SQLite. Files are parsed in the browser before the workspace opens.
Supported files and requirements
- CSV .csv .tsv .txt
- Excel .xlsx .xlsm .xls .xlsb
- SPSS .sav .zsav .por
- Stata .dta
- SAS .sas7bdat .xpt
- R .rds .rdata .rda
- Parquet .parquet
- JSON .json .jsonl .ndjson
- Triple-S .sss .xml .asc .dat
- OpenDocument .ods .fods
- Arrow/Feather .arrow .feather .ipc
- SQLite .sqlite .sqlite3 .db
Optional: a matching Qualtrics .qsf file adds question wording.
Triple-S: select the metadata file (.sss or .xml) and its data file (.asc, .dat or .csv) together.
Use one row per respondent's answers.
SPSS, Stata, CSV and Parquet files over 50 MB (up to 2 GB) open after you choose which columns to load.
Or try a realistic sample
What you get · real output from the sample
| NPS Group | Loyal Customer(A) | New Customer(B) | Prospect(C) | At Risk(D) |
|---|---|---|---|---|
| Promoter | 56%BCD | 35%D | 26% | 19% |
| Passive | 25% | 30% | 39%AD | 23% |
| Detractor | 19% | 34%A | 35%A | 58%ABC |
| Base n= | 188 | 164 | 140 | 108 |
What this is useful for
- Analyze survey exports saved as Excel (.xlsx, .xlsm, .xls, .xlsb) or OpenDocument (.ods) workbooks.
- Create crosstabs without pivot-table setup or formulas.
- Compare row percentages, column percentages, and adjusted residuals.
- Export cleaned crosstab output to PDF, XLSX, CSV, or clipboard.
Workflow
Upload your survey data
Open a CSV, Excel, SPSS, Stata, SAS or JSON file, or start from a sample dataset. The file is parsed in the browser.
Step 2Table
Rows: NPS GroupColumns: SegmentSample crosstab preview: NPS Group by Segment Group Loyal Prospect New promoters 56% 26% 35% detractors 19% 35% 34% Choose variables
Assign row and column variables, then add filters, missing-value handling, recodes, or a supported saved survey design.
Export the result
Review counts, percentages, statistics, and charts, then export the result or create an aggregate snapshot link for review and citation.
Make a crosstab in Excel with a PivotTable
Your sheet needs a header row and one row per respondent or record. Click any cell in the data, then choose Insert › PivotTable and place it on a new worksheet.
In the PivotTable Fields pane, drag the first variable (for example Region) to Rows and the second (for example Plan) to Columns. Drag any field that is filled on every row, such as a respondent ID, to Values, open Value Field Settings and choose Count. You now have a count crosstab with row and column totals.
For percentages, right-click a number in the table and choose Show Values As › % of Column Total to compare columns, or % of Row Total to compare rows. Pick the one that matches your question: column percentages answer "within each column, how often does each row occur?".
The formula alternative: COUNTIFS
If you need a fixed layout that updates with the data, type the categories of one variable down column A and the other across row 1, then fill the grid with COUNTIFS. With the data as a table named Data: =COUNTIFS(Data[Region],$A2,Data[Plan],B$1). Divide each cell by its column total for column percentages.
Where Excel stops
A PivotTable counts and percentages, but it does not test them. CHISQ.TEST needs a second table of expected counts that you build by hand, and Excel gives no significance letters between columns, no warning when expected counts fall below 5, no Cramér's V, and no easy weighting or multi-response questions. That is where the rest of this page comes in.
From Excel rows to crosstab output
Excel is often where survey and operations data lands, but pivot tables stop short of statistical context. Crosstabs opens Excel workbooks (.xlsx, .xlsm, .xls and .xlsb) into a purpose-built workspace for categorical analysis, so the table, percentages, p-values, residuals, and effect sizes stay together.
The workflow is intentionally lightweight: choose a row variable, choose a column variable, optionally add filters, and export the result. Supported saved survey designs are separate from untyped quick-workspace weight candidates. The original spreadsheet stays in the browser for table calculation.
When this is faster than a pivot table
Use this when you need row and column percentages, significance highlighting, warnings for sparse tables, or a report-ready PDF. A pivot table can count categories, but it does not explain whether the pattern is likely meaningful.
FAQ
Can I upload an .xlsx file?
Yes. Crosstabs accepts .xlsx, .xlsm, .xls and .xlsb workbooks and OpenDocument .ods, as well as CSV, TSV, TXT, SPSS, Stata, SAS and JSON files.
Do I need to format the workbook first?
Not usually. Crosstabs reads the worksheet with the most data, so cover or notes tabs can stay, and the import notes name the sheet it used. That sheet should have a header row and one observation per row; sheets are not combined. The workspace detects categorical and numeric columns automatically.
Can I export back to Excel?
Yes. Crosstab output can be exported as XLSX, CSV, PDF, or copied to the clipboard.