Skip to content
A long spreadsheet list turned into a tidy cube of colored blocks, illustrating a pivot table

EXCEL & GOOGLE SHEETS TIPS · LESSON 6

How to Make a Pivot Table in Excel and Google Sheets (Step by Step)

A pivot table turns a long list of transactions into a summary, such as spending by category and month, without a single formula. This lesson builds the same pivot table from 34 real business expenses in Excel and in Google Sheets, explains Rows, Columns and Values, groups dates by month and fixes the usual problems: Count instead of Sum, new rows not showing, dates that won't group.

7 real screenshotsExcel and Google SheetsGroup dates by monthFree example file
Screenshots: Microsoft Excel for Mac (Microsoft 365) and Google Sheets in Chrome, taken in November 2026. Excel for Windows has the same field list; the PivotTable dialog looks slightly different.

THE SHORT ANSWER

Insert, then drag three fields

EXCEL

Click any cell in the data → Insert → PivotTable → New Worksheet → OK → in the field list tick Category (goes to Rows) and Amount (goes to Values as Sum) → drag Date or Months to Columns.

GOOGLE SHEETS

Select the data → Insert → Pivot table → New sheet → Create → in the editor: Rows → Add → Category, Columns → Add → Date - Month, Values → Add → Amount (SUM).

Both give the table below: five categories down the side, September to November across the top, totals in the corner. Grand total $1,972.03, identical in both apps. Download the example file: the Transactions sheet with all 34 expenses and the finished PivotTable on the Pivot sheet, built in Excel. Click any cell of the pivot to open its field list, or build your own next to it from the same data. It also opens in Google Sheets.

Excel pivot table with Sum of Amount by category in rows and September, October, November in columns, grand total 1,972.03 dollars
The finished pivot in Excel: Advertising $613.13, Travel $507.42, November total $742.15.

BEFORE YOU START

Prepare the data: one header row, one record per row

  • Every column has a header (Date, Description, Category, Paid with, Amount). An empty header cell stops Excel with "The PivotTable field name is not valid".
  • One transaction per row, no subtotal rows and no blank rows in the middle.
  • Real dates and real numbers. Dates typed as text won't group by month; amounts stored as text are counted, not summed.
  • Categories spelled the same way every time. "Software" and "software " become two rows. A drop-down list (lesson 1) prevents this.

EXCEL

How to make a pivot table in Excel

  1. Click any cell inside the data, then open the Insert tab and click PivotTable. (On Windows the button may open a small menu: choose From Table/Range.)
Excel Insert ribbon tab with the PivotTable button highlighted at the left
Insert tab → PivotTable, the first button on the left.
  1. Check the range and the destination. Excel guesses the whole table (here Transactions!$A$1:$E$35). Keep New Worksheet and click OK.
Excel Create PivotTable dialog with Table/Range Transactions!$A$1:$E$35 and New worksheet selected
The range is filled in for you because a cell in the data was selected.
  1. Tick the fields. In the PivotTable Fields pane, tick Category (text fields go to Rows) and Amount (numbers go to Values as "Sum of Amount").
  2. Add the months. Tick Date. Excel groups dates automatically and adds Months (Date), often with Days and Date as well, all in Rows. That gives a long list of single days.
Excel PivotTable Fields pane with Date, Category, Amount and Days (Date) ticked, and Rows containing Months (Date), Days (Date), Date and Category
After ticking Date, Excel for Mac put Months, Days and Date in Rows (boxed). Keep only Months.
  1. Clean up the date fields. Untick Days (Date), drag Date out of the Rows box, and drag Months (Date) from Rows to Columns. Category stays in Rows. The table becomes the compact category-by-month grid shown at the top.
  2. Format the numbers. Right-click a number → Number Format… → Currency, so the whole Values area keeps the format after refreshes.
No automatic grouping? Right-click any date inside the pivot → Group… → select Months (and Years if your data spans more than one year) → OK. If Group is greyed out, some "dates" are text: see the problems table.

GOOGLE SHEETS

How to make a pivot table in Google Sheets

  1. Select the data including the header row (A1:E35), then Insert → Pivot table.
Google Sheets Insert menu open with Pivot table highlighted and the data range A1:E35 selected
Insert → Pivot table.
  1. Confirm the range (Sheet4!A1:E35 in the screenshot; it shows your own sheet name, Transactions in the example file), keep New sheet and click Create. The prompt box at the top is optional; you don't need it.
Google Sheets Create pivot table dialog with data range Sheet4!A1:E35 and New sheet selected
Data range and destination.
  1. Rows → Add → Category.
  2. Columns → Add → Date - Month. Sheets offers ready-made date parts for date columns. If your version shows only "Date", add it, then right-click any date in the pivot → Create pivot date group → Month (or Year-Month for several years).
  3. Values → Add → Amount. "Summarize by" is SUM by default for numbers.
Google Sheets pivot table with SUM of Amount by Category in rows and Date - Month in columns, and the Pivot table editor showing Rows Category, Columns Date - Month, Values Amount SUM
Same result as Excel: $446.29, $783.59 and $742.15 for September to November, $1,972.03 in total.

HOW IT READS

Rows, Columns, Values and Filters

AreaWhat it doesTry this with the example
RowsOne row per distinct value.Category → 5 rows. Add Description under it to see what is inside each category.
ColumnsOne column per distinct value.Months → Sep, Oct, Nov. Put Paid with here instead to compare card vs checking.
ValuesThe number in each cell: Sum, Count, Average, Max…Amount as Sum. Change to Count to see how many purchases, or Average for the typical ticket.
FiltersLimits the data without changing the layout.Paid with = Business card to see only card spending.

Percent of total: Excel: right-click a value → Show Values As → % of Grand Total. Google Sheets: in the Values card, Show as → % of grand total. Advertising is 31% of all expenses in the example.

NEW DATA

Refresh the pivot when you add rows

  • Excel doesn't update a pivot by itself. After editing the data, click inside the pivot → PivotTable Analyze → Refresh (Windows shortcut Alt+F5).
  • New rows below the range are ignored until you widen it: PivotTable Analyze → Change Data Source. Better: turn the data into a table first (Ctrl+T on Windows, Insert → Table on any version) and build the pivot from the table; it grows with every new row, and Refresh picks it up.
  • Google Sheets recalculates automatically, but also only inside its range. Use an open-ended range such as Transactions!A1:E (with your sheet name) in the editor so new rows are included.

TROUBLESHOOTING

Pivot table problems and fixes

What you seeWhyFix
"Count of Amount" instead of SumThe Amount column has blanks or text, so Excel defaults to Count.Values → Value Field Settings → Sum; then fix the text numbers.
"The PivotTable field name is not valid"A header cell is empty or the range includes an empty column.Name every column; select only the data.
New transactions are missingThe pivot wasn't refreshed, or the rows are outside its range.Refresh; build from a table (Excel) or an open range (Sheets).
Dates won't group (Group is greyed out)At least one date is text, or a cell is empty.Convert text dates (DATEVALUE or Data → Text to Columns), fill the gaps, refresh.
The same category appears twiceDifferent spelling or a trailing space.Clean the column with TRIM or Find & Replace, then refresh.
A "(blank)" rowRows with an empty Category.Fill them in, or filter (blank) out with the row label filter.
Numbers lose their format after refreshCells were formatted directly.Format through Value Field Settings → Number Format (Excel).
Where this pays off: bookkeeping is a transaction log plus summaries by category and month, the exact shape a pivot table builds. Our small business bookkeeping template builds those monthly and annual summaries from the transaction log for you, as ready-made dashboards.

FAQ

Pivot table questions

How do I make a pivot table in Excel?

Click a cell in your data, choose Insert → PivotTable → New Worksheet → OK, then tick the fields in the PivotTable Fields pane: a text field goes to Rows, a number field goes to Values as a Sum. Drag fields between Rows, Columns, Values and Filters to change the layout.

How do I make a pivot table in Google Sheets?

Select the data, choose Insert → Pivot table → Create, then use the editor: Rows → Add, Columns → Add, Values → Add. Google Sheets updates the pivot when the data changes.

How do I group dates by month in a pivot table?

In Excel, dates are often grouped automatically; otherwise right-click a date in the pivot → Group → Months. In Google Sheets, add the "Date - Month" field or right-click a date → Create pivot date group → Month.

Why does my pivot table show Count instead of Sum?

The value column contains blank or text cells. Change the summary to Sum in Value Field Settings (Excel) or Summarize by (Sheets), and convert any numbers stored as text.

How do I refresh a pivot table?

In Excel, click inside it and choose PivotTable Analyze → Refresh, or Alt+F5 on Windows. Google Sheets refreshes automatically, as long as new rows are inside the source range.

Pivot table or SUMIFS?

A pivot table is fastest for exploring and one-off summaries. SUMIFS formulas (see lesson 4) suit a fixed report or dashboard that must update without refreshing.

Back to top