1. Prepare the data
Make sure the table has one header row, no blank rows, and consistent values in each column.
2. Insert the pivot table
Select the data range and choose the pivot table option in your spreadsheet program.
3. Build the layout
Drag a category to rows and a number to values. Choose sum, count or average from the value settings.
4. Refresh after changes
When new rows are added, refresh the pivot table so the totals include them.