Skip to content

Pivot Table

Groups rows by one or two columns and aggregates with count, sum, average, min, max or distinct.

Group rows by one column, optionally spread a second across the top, and aggregate a third. It is the pivot table without the spreadsheet, on a file that would take a minute to open in one.

🔒 Runs entirely in your browserpivotaggregategrouptable

Drop a CSV or TSV

Read in this tab. Nothing is uploaded. Files from Korean, Japanese, Chinese and Western Excel (CP949, Shift_JIS, GBK, Windows-1252) are recognised.

How to use it

  1. Choose the row grouping

    The column whose distinct values become the rows of the summary: region, month, salesperson.

  2. Optionally spread a second column across

    Region down and month across gives the cross-tab. Leave it as None for a plain grouped total.

  3. Pick the measure and how to aggregate it

    Sum and average need a numeric column; count works on anything. The measure defaults to the first numeric column, because pivoting a text column by sum gives a grid of blanks and reads as a broken tool.

Common questions

Are non-numeric cells counted as zero?

No, they are skipped. A column with three blanks and two values has an average over the two, not over five. Counting blanks as zero would quietly halve every average in a file with gaps.

Why are there so many columns?

The column you spread across has that many distinct values. Spreading on a date rather than on a month gives one column per day. Group the dates first, or spread on something coarser.

Can I have two measures at once?

Not in one pass. Run it twice and join the results on the group column, or use the SQL tool where a single SELECT can carry a COUNT and a SUM side by side.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.