About CSV Pivot Table Builder
Turn a long list of records into a summary: revenue by region and quarter, orders by customer, the highest score per team. Name the columns to group rows by, optionally a column whose values become the columns of the summary, and the column to add up, and the pivot table is rebuilt as you type.
Leave the fields blank to start: rows are grouped by the first column and the last column that holds numbers is added up. Totals are worked out from the original values, so the total of an average column is the true overall average, not an average of averages.
How it works
- The CSV is read with its header row; columns are named in the fields by their heading (in any letter case) or by position, written #3.
- Each distinct combination of the row columns becomes one row, each distinct value of the column grouping one column, sorted A to Z with numbers in numeric order and blank values last as (blank).
- Numbers may be written with thousands commas, an exponent, a leading currency sign or a Unicode minus. Empty cells are ignored; cells holding text are left out and counted in a note.
- Count counts the rows in each group, or the non-empty cells of the Values column when one is named. Totals for every summary are computed from the original values.
Questions
Can I group by more than one column?
Yes. List several columns under Rows, separated by commas, and each combination becomes a row. A name that contains a comma can be wrapped in double quotes. Several columns under Columns are combined into one heading such as "North / Q1".
Does it understand decimal commas like 1.234,56?
No. Numbers are read with a dot as the decimal point and commas only as thousands separators, so 1.234,56 is treated as text and left out, with a note saying how many cells were.
How large can the CSV be?
Up to 5 MB of text. The column grouping may have up to 1,000 distinct values, and the pivot table up to 2 million cells.
Can I open the result in a spreadsheet?
Yes. Download it as CSV or TSV, or switch the output to Markdown or a text table to paste it into a document or a message.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.