Guide

Pivot table for trade history

Summarise a list of trades by symbol and side with a PivotTable, using the Trades sheet of a Statementizer export as the source.

Short answer

Select the Trades sheet range, choose Insert > PivotTable, then drag Symbol to Rows, Side to Columns and Quantity or Fees to Values. Microsoft says numeric fields in Values display as a SUM, and that the source data should have a single header row, no blank rows or columns, and the same data type in each column.

The source data

The Trades sheet of a Statementizer Excel export has one row per trade and the columns Date, Symbol, Side, Quantity, Price, Gross, Fees, Net, Currency, Confidence and Review Status. Microsoft's PivotTable page says the data should be organised in columns with a single header row and in a tabular format without blank rows or columns, with a unique, non-blank label for every column, and that "data types in columns should be the same."

The steps (Excel for Windows)

  1. Select the cells you want to create the PivotTable from, header row included.
  2. Select Insert > PivotTable. Excel creates the PivotTable from the range.
  3. Choose where to place it: New Worksheet or Existing Worksheet. Select OK.
  4. In the PivotTable Fields pane, select the checkbox of a field to add it, or drag it to an area. Microsoft says non-numeric fields go to Rows by default and numeric fields go to Values.
  5. Put Symbol in Rows, Side in Columns and Quantity in Values.
  6. After adding new rows to the source, refresh: right-click anywhere in the PivotTable and select Refresh.

A worked example

Five invented rows in the shape of a Trades sheet
DateSymbolSideQuantityPriceFees
2026-03-02AAABuy10010.001.00
2026-03-04AAABuy5010.301.00
2026-03-09AAASell15011.001.00
2026-03-10BBBBuy4025.001.00
2026-03-12BBBSell4024.501.00
The PivotTable: Symbol in Rows, Side in Columns, Sum of Quantity in Values
SymbolBuySellTotal
AAA150150300
BBB404080

Swap Quantity for Fees in Values and the same layout gives fees by symbol: AAA 3.00, BBB 2.00. The Total column adds buys and sells together, so it suits fees and less so quantity.

If you see counts instead of sums

Microsoft says that "if Excel interprets your data as text, the data is displayed as a COUNT." That points to numbers stored as text in the source. Convert the column first; the numbers stored as text guide has the methods.

What a pivot does not do

A PivotTable totals what is in the rows. It does not pair buys with sells, work out cost basis or convert currencies, and the template's Journal sheet is still entered by hand. Rows flagged for review in Statementizer keep their Confidence and Review Status columns in the Trades sheet, so they stay visible in the source rows.

Common questions

Do I need the Statementizer export to build a pivot?
No. Any list with one header row and consistent columns works. The export provides the columns used here.
Why is my pivot not updating?
Microsoft says a PivotTable built on a data source needs to be refreshed after new data is added. Right-click the PivotTable and select Refresh.
Can I show an average price?
This page covers only the default SUM that Microsoft describes. For an average price, divide the Sum of Gross by the Sum of Quantity, as the partial fills guide does.
Why do I see a count?
Microsoft says that if Excel interprets the data as text, the Values area shows a COUNT. Check the column's data type.

What Statementizer does with this

Statementizer reads supported broker statement PDFs into rows you can review, and exports them to Excel or CSV. The review screen shows each row beside its PDF page, and the Confidence and Review Status columns travel into the Trades sheet.

See what Statementizer converts

Sources

The steps, defaults and source-data rules are from Microsoft's PivotTable page, read on 2026-11-12 (Windows tab; no updated date shown). The Trades sheet columns are those of Statementizer's Excel export. The example rows are invented and the totals are computed from them.

Verified on 2026-11-12 by the Statementizer Team.