Sample Pivot Table in Excel

If you just need to sample pivot table in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: select a clean data range, choose Insert ▸ PivotTable, place fields into Rows, Columns, Values and Filters, then refresh when the source data changes.

On this page7
▤Annotated stepsExcel
1

Start from a rectangular source table with clear headers.

2

Select the data and choose Insert ▸ PivotTable.

3

Drag category fields to Rows or Columns and numeric fields to Values.

4

Set Value Field Settings, number format, filters and refresh behavior before using the result.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

A pivot table summarizes a flat data table without writing formulas. Rows and Columns define the groups, Values define the numbers to aggregate, and Filters or slicers narrow the view. It works best when the source has one header row, no blank columns, one record per row and consistent data types. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. Treat “sample pivot table in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected pivot table shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

A sales table has Date, Region, Rep and Revenue columns. Insert a PivotTable, drag Region to Rows and Revenue to Values. Excel returns total revenue by region. Drag Date to Columns and group by Month to turn the same source into a monthly regional summary. Pivot tables are one of the highest-leverage Excel tools for summarizing messy transactional data into totals by customer, region, month, product or owner. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. If you take one thing from this page on “sample pivot table in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.

Common mistakes

  • Using a report layout with merged cells or subtotals as the source.
  • Forgetting to refresh after source data changes.
  • Letting Excel count a numeric field because one source cell contains text.
  • Building formulas beside a pivot table without allowing for the pivot size to change.

Frequently asked questions

What is a pivot table?

It is an interactive summary table that groups and aggregates records from a source table.

Why is my pivot table counting instead of summing?

At least one value in the source field is text or blank in a way that makes Excel treat the field as non-numeric.

How do I update a pivot table?

Right-click the pivot table and choose Refresh, or use Data ▸ Refresh All.