How to Build a Pivot Table From a CSV File
A pivot table turns a long list of sales rows into a small grid you can actually read. The trick isn't the click. It's picking the fields on purpose and proving the total before you trust it.

You start with a flat CSV: one row per sale, with columns for region, product and amount. The Pivot Table Maker reads the first row as the header, then lets you assign one column to the rows, one to the columns and one to the values inside the grid. Pick Sum as the Aggregation and each cell becomes the total for that pairing, with row totals, column totals and a grand total around the edges. This guide runs a six-row sales file through the tool, reads the finished grid cell by cell, and cross-checks the grand total against the amount column added up by hand.
What the four settings actually do
Think of the grid before you touch anything. Rows run down the left side. Columns run across the top. Every cell sits where one row label meets one column label, and the number inside it comes from the Value field, combined using the Aggregation you choose. If you set rows to region and columns to product, you'll get one cell for North Widgets, one for North Gadgets, one for South Widgets, and so on. Swap the two fields and the same numbers land in a transposed grid. The data hasn't changed. Only the reading direction has.
That is why the order matters. Decide what you want to scan down, what you want across, and what number belongs inside. Once those calls are made, the tool sorts and adds for you, and your job shifts to checking.
Build the pivot in seven steps
Open the Pivot Table Maker. You'll see a field labelled CSV data — first row is the header, plus a line that reads …or open a .csv file from your device. Either route works. Paste if the data is already on your clipboard. Open the file if it's sitting in a folder.
- Paste your CSV into the CSV data field or use the file picker to open a .csv file from your device, with the first row left in place as the header.
- Set the Row field to the category you want down the side, such as region.
- Set the Column field to the category you want across the top, such as product.
- Set the Value field to the number column you want to total, such as amount.
- Choose the Aggregation deliberately, picking Sum for totals and Count only when you want a count of rows.
- Click Build pivot table and read the grid, checking a row total and a column total against the cells in that line.
- Add the raw value column yourself and compare it with the grand total in the corner, then use Copy table as CSV or Download CSV to save the result.
Don't rush step five. Sum and Count sit next to each other, and they answer different questions. Sum tells you how much. Count tells you how many rows. A grid built on Count can look tidy and still tell you nothing about money, units or weight.
A worked example: six sales rows
Here's the file. The header is region,product,amount. The rows are North/Widgets/1200, North/Gadgets/800, South/Widgets/950, South/Gadgets/1500, East/Widgets/600 and East/Gadgets/400. Set Row field to region, Column field to product, Value field to amount, and Aggregation to Sum, then click Build pivot table.
Read the grid row by row. North shows 1200 under Widgets and 800 under Gadgets, for a row total of 2000. South shows 950 and 1500, for a row total of 2450. East shows 600 and 400, for a row total of 1000. Now read down. The Widgets column totals 2750, from 1200 plus 950 plus 600. The Gadgets column totals 2700, from 800 plus 1500 plus 400. The grand total in the corner reads 5450.

Now do the step-seven check. Add the raw amount column down the original file: 1200 plus 800 plus 950 plus 1500 plus 600 plus 400 comes to 5450. It matches. The row totals get there too, since 2000 plus 2450 plus 1000 is 5450, and so do the column totals, since 2750 plus 2700 is 5450. Three routes, one number. That's a grid you can send to someone else.
Reading the grid once it's built
Start at the edges, not the middle. Row totals tell you which region did the most overall. Here that's South at 2450, ahead of North at 2000 and East at 1000. Column totals tell you which product line carried the file. Widgets edges it at 2750 against Gadgets at 2700, a gap of just 50. Then drop into the cells. South Gadgets at 1500 is the biggest cell in the grid. East is the weakest row on both products, not just one — a finding you only see if you read rows and columns separately first.
When the grid needs to go somewhere else, Copy table as CSV puts it on your clipboard in the same comma-separated shape, totals included. Download CSV saves it as a file. Copy for a quick paste. Download when the grid should live next to the source file.
Three mistakes that produce a wrong grid
The first is a missing header row. The tool treats the first row as the header, so if your paste starts straight into data, the first sale becomes the column names and quietly drops out of the totals. Your grand total comes up one row short, and the field dropdowns show values like North or 1200 instead of region and amount. If the dropdowns don't show real column names, stop and fix the paste.
The second is numbers stored as text. Files out of other systems sometimes carry amounts as text, padded with spaces or wrapped so they don't read as numbers. The grid may still build, but the sums won't match the values you see. The grand-total check catches this fast. If your hand sum and the corner number disagree, suspect the value column first.
The third is picking Count when you meant Sum. Count ignores the amount column entirely and just tallies rows, so every pairing with the same number of sales shows the same figure. It looks plausible at a glance. It falls apart the moment you check one cell by hand. Pick the Aggregation as a decision, not as a default you click past.
The Verystep Pivot Table Maker takes pasted CSV data or a .csv file from your device, lets you set a Row field, a Column field and a Value field, and builds the grid with the Aggregation you pick. Use Copy table as CSV to paste it elsewhere, or Download CSV to save it.
Last verified November 17, 2026 — steps, fields and buttons checked against the live Verystep Pivot Table Maker; worked totals recomputed from the six-row sales CSV (grand total 5450).
Frequently asked questions
Do I paste my CSV or open it as a file?
Either. Paste into the CSV data field when the text is already in front of you. Use the …or open a .csv file from your device option when the data lives in a saved file. Both routes read the first row as the header the same way.
Why is my grand total smaller than the sum of my amount column?
The usual cause is a missing header row. If the first data row got treated as the header, its amount never entered the grid. In the worked example, losing the North/Widgets/1200 row would drop the grand total from 5450 to 4250. Check the field dropdowns show your real column names, then rebuild.
When would I choose Count instead of Sum?
Choose Count when the question is how many rows fall into each pairing, not how much they add up to. With the sales file, Count would show 1 in every cell, because each region and product pairing appears once. That's a fair answer to a counting question and a useless one for revenue. Match the Aggregation to the question you're actually asking.
What do I get when I copy or download the pivot table?
A CSV version of the finished grid, row totals, column totals and grand total included. Copy table as CSV puts it on your clipboard for pasting elsewhere. Download CSV saves it as a .csv file. Neither changes your original source file.
Can I swap what's in the rows and columns?
Yes. Set the Row field to product and the Column field to region and rebuild. The cells hold the same values, just transposed, and both totals still meet at the same grand total of 5450 for this data. Pick the layout that matches how you'll read it.
More guides

The PPWR Empty Space Ratio: Why the 50% Cap Hits Your Shipping Box First
Ask a room of online sellers what the PPWR will change first and most will say labels. The duty with a number in it is quieter: from 2030 at the earliest, no more than half the volume of your shipping box may be empty — and the filler you stuff into it counts as empty.

Counting a Return Window: The EU 14-Day Cooling-Off Period Starts the Day After Delivery
A shop page says “14 days to return”. Fourteen days from when — the order, the dispatch, the delivery? And counted how — in calendar days or working days? EU law answers both questions, and the answers are not the ones most countdown banners use.

How to Check Gift Return Eligibility Without a Receipt
Black Friday is over, the gifts are changing hands, and some of them are the wrong size, the wrong color or the second one you own. There is no receipt — there never is with a gift — so the question is not “can I get my money back?” but “which route does this store actually offer someone in my position, and how long do I have?”