Pivot Table: Build One in 6 Steps

Charts & pivot tables · Updated November 23, 2026

The fastest way to build a pivot table in Excel is to select any cell inside your data range, go to Insert > PivotTable, choose where to place it, then drag fields into the Rows, Columns, Values, and Filters areas of the PivotTable Fields pane. In about a minute you can summarize thousands of rows into a compact, interactive report. Below is the full process, plus how to choose the right fields, fix common problems, and avoid the mistakes that trip up most beginners.

What a Pivot Table Actually Does

A pivot table is Excel’s tool for grouping and aggregating data without writing formulas. It takes a flat list—say, sales transactions with columns for Date, Region, Product, and Amount—and lets you rearrange (or “pivot”) those columns to answer questions like “total sales by region” or “average order value per product.” The underlying data is never changed; the pivot table is a separate summary view that recalculates when you refresh it.

Every pivot table is built from four main areas:

  • Rows – fields shown as row labels (e.g., Region).
  • Columns – fields shown as column headers (e.g., Year).
  • Values – the numbers being summarized (e.g., Sum of Amount).
  • Filters – optional slicers that filter the whole report (e.g., Product Category).

This structure is what makes pivot tables so flexible: you can move a field from Rows to Columns with a single drag, and the entire summary reshapes instantly.

Step-by-Step: Creating Your First Pivot Table

These steps work in Excel for Microsoft 365 on Windows. On a Mac, the menu names are the same, but you may need to click PivotTable under the Insert tab rather than a dropdown.

  1. Prepare your data. Ensure every column has a header, and there are no blank rows or columns within the range. Excel needs this to detect the range correctly.
  2. Select any cell inside your data (e.g., A1). This tells Excel to use the entire contiguous range.
  3. Go to Insert > PivotTable (or press Alt+N+V on Windows). The Create PivotTable dialog opens.
  4. Confirm the range is correct. Choose New Worksheet (recommended) or Existing Worksheet and pick a cell.
  5. Click OK. An empty pivot table appears with the PivotTable Fields pane on the right.
  6. Drag fields into the areas. For example, drag Region to Rows, Product to Columns, and Amount to Values. The summary appears immediately.

That’s the whole process. If you want a quick start, check Recommended PivotTables on the Insert tab—Excel suggests a few layouts based on your data, and you can tweak them afterward.

Choosing the Right Fields and Aggregation

The most common mistake is putting a text field in Values. When you drag a text column to Values, Excel defaults to Count, which counts how many rows exist for each item. That’s useful (e.g., number of orders per customer), but if you expected a sum, you need a numeric field.

For numbers, Excel defaults to Sum. To change the calculation (Average, Count, Max, Min, etc.):

  • Click the arrow next to the field in the Values area.
  • Choose Value Field Settings.
  • Select a function like Average or Count, then click OK.

You can also add the same field twice—once as Sum and once as Average—to see both totals and averages side by side. For date fields, Excel automatically groups them by month or year if you drag them to Rows; you can right-click a date and choose Group to change the grouping (days, months, quarters, etc.).

Common Problems and How to Fix Them

Even experienced users hit these issues. Here are the fixes:

  • Blank rows or columns in the source data. This breaks the range detection. Use Ctrl+Shift+End to select the actual data, or convert your range to a Table (Ctrl+T) before creating the pivot—then new rows are picked up automatically.
  • New data isn’t showing. Pivot tables don’t update automatically. Right-click the pivot and choose Refresh, or press Alt+F5. If you added rows beyond the original range, you must change the source: go to PivotTable Analyze > Change Data Source.
  • Text appears in Values as “Count of…” That’s expected for text. If you need a sum, the column must contain numbers, not text. Check for cells with apostrophes or spaces that make them text.
  • Numbers are summing incorrectly. Look for hidden rows or filters in the source data. Also, if any cell in the column is text, Excel treats the whole column as text and won’t sum it.
  • Pivot table is slow. Large data sets (hundreds of thousands of rows) can lag. Consider using Power Pivot (available in Excel 365 Pro Plus) or converting to a Table and using Data Model.

One misconception: you don’t need to sort your data before building a pivot table. The pivot table sorts and groups automatically.

Formatting and Layout Tips

By default, pivot tables use a compact layout with all row fields in one column. To change to an outline or tabular layout:

  • Click anywhere in the pivot table.
  • Go to Design > Report Layout.
  • Choose Show in Tabular Form to put each field in its own column.

You can also apply a built-in style from the Design tab, or format numbers by right-clicking a value cell and choosing Number Format. For a professional look, turn off subtotals if you don’t need them: Design > Subtotals > Do Not Show Subtotals.

To make the report interactive, add slicers: click PivotTable Analyze > Insert Slicer, then select fields like Region or Date. Slicers are visual filter buttons that let you click to filter the entire pivot table instantly.

Refreshing and Updating Data

As mentioned, pivot tables are a snapshot of your data at the moment you create or refresh them. If your source data changes (new rows, edits, deletions), you must refresh:

  • Right-click the pivot table and choose Refresh.
  • Or press Alt+F5 (Windows) / Cmd+Option+R (Mac).
  • To refresh all pivot tables in the workbook, go to Data > Refresh All (or press Ctrl+Alt+F5).

If you add rows to the source range, the pivot won’t include them unless the source is a Table (created with Ctrl+T) or you manually update the range in PivotTable Analyze > Change Data Source. Using a Table is the best practice because it auto-expands, and the pivot will automatically include new rows on refresh.

Alternatives to Pivot Tables

Pivot tables aren’t always the best tool. Here are common alternatives and when to use them:

  • SUMIFS / COUNTIFS formulas – For simple summaries that must update automatically as data changes, without manual refresh. Example: =SUMIFS(Amount, Region, "East").
  • Excel Tables with structured references – Good for basic totals and running calculations, but not for cross-tabulations.
  • Power Query – For cleaning and reshaping data before summarizing; it can also group data, but it’s more complex.
  • Power Pivot – For large datasets (millions of rows) and relationships between tables; pivot tables built on the Data Model are more powerful.
  • Charts – A pivot chart is a visual companion to a pivot table; you can create one from the pivot table via PivotTable Analyze > PivotChart.

For most everyday summaries, a pivot table is the fastest and most flexible choice.

Frequently Asked Questions

Why is my pivot table showing “Count of” instead of “Sum of”?

This happens when the field you dragged to Values is text, or contains any text values. Excel defaults to Count for text. Check the column for non-numeric entries (like “N/A” or a leading apostrophe). If all values are numeric but it still counts, the cells might be formatted as text—select the column, go to Data > Text to Columns, and finish to convert them to numbers.

How do I add a calculated field to a pivot table?

Click anywhere in the pivot, go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. Type a name and a formula (e.g., =Amount * 0.08 for tax). The calculated field appears in the Values area and updates with the pivot.

Can I group dates by month or quarter?

Yes. Drag a date field to Rows, then right-click any date and choose Group. Select Months, Quarters, Years, or a custom range. Excel groups the dates automatically. Note: grouping works only if the field is a real date, not text.

Why does my pivot table not include new rows I added?

Because the pivot table’s source range is fixed. If you didn’t use a Table, you must update the range manually: PivotTable Analyze > Change Data Source and select the new range. The easiest fix is to convert your data to a Table (Ctrl+T) before creating the pivot—then new rows are included on refresh.

How do I remove a field from the pivot table?

In the PivotTable Fields pane, uncheck the field, or drag it out of its area. The field disappears from the pivot but remains in your source data.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.