
A pivot table turns a long list of rows into a short summary, such as total sales by region, in a few clicks. You do not need formulas. This Excel pivot table tutorial shows how to create a pivot table in Excel step by step for beginners, how to read the Fields pane, and how to group dates, add a slicer and refresh your results. The example data is made up, and menu names can differ a little between Excel versions.
What is a pivot table in Excel?
A pivot table is a summary tool. It reads a table of data and adds up, counts or averages the numbers for you, grouped by the columns you choose. The original data does not change. Think of a sales list with Region, Product and Amount columns. A pivot table can show the total Amount for each Region without a single formula.

Prepare your data before you make a pivot table
Pivot tables work best on clean data. Before you start, check these points:
- Each column has a heading in the first row, and no heading is blank.
- Each row is one record, with no empty rows in the middle.
- Each column holds one kind of value, for example dates only or numbers only.
Duplicate rows will be counted twice, so clean the list first. Our guide to removing duplicates explains the idea in Google Sheets, and Excel has a similar Remove Duplicates button on the Data tab.
How to create a pivot table in Excel: step by step
- Click any cell inside your data.
- Open the Insert tab and click PivotTable.
- Check that Excel selected the whole data range, including the headings.
- Choose New Worksheet and click OK.
- Excel opens an empty pivot table and the PivotTable Fields pane on the right.
- Drag Region into the Rows box, and drag Amount into the Values box.
The table now shows the total Amount for each Region. If you are not sure which fields to use, the Insert tab also has Recommended PivotTables, which suggests some starting layouts.

How the PivotTable Fields pane works
The pane has four boxes, and each one controls a part of the table:
- Rows lists items down the left side, such as Region.
- Columns lists items across the top, such as Product.
- Values holds the numbers to add up or count, such as Amount.
- Filters lets you show one item at a time, such as one month.
Excel adds up number fields by default and counts text fields. To change this, click the field in the Values box, choose Value Field Settings, and pick Sum, Count, Average or another option. Totals in a pivot table work like the SUMIF formula, but you do not have to write anything.

Group dates, add a slicer and refresh the pivot table
To group dates by month, drag the Date field into Rows, right-click a date in the table and choose Group, then select Months. To add a filter button, click inside the pivot table, open the PivotTable Analyze tab and choose Insert Slicer. A slicer lets you click an item, such as one region, to filter the whole table.
A pivot table does not update by itself. After you change the source data, right-click the pivot table and choose Refresh, or use Data, then Refresh All. If you add new rows below the data, check that the pivot table's source range includes them, or turn the data into an Excel table first so the range grows with it.

Pivot table or formulas?
Use a pivot table when you want quick totals and different views of the same data. Use formulas when you need a fixed layout or a single value in a report. You can also look values up with a formula, as shown in our post on XLOOKUP vs VLOOKUP. To show pivot results on a summary page, see the dashboard guide, which uses the same idea in Google Sheets.
Excel pivot table: common questions
How do I create a pivot table in Excel with multiple sheets?
The simplest way is to copy the data from all the sheets into one table with the same columns, then build one pivot table from it. Excel can also combine tables with its Data Model, but start with the single table if you are a beginner.
Why is my pivot table counting instead of adding?
The number column probably contains some text or blank cells. Fix those cells, refresh the table, and set the field to Sum in Value Field Settings.
Is a pivot table free to use?
Pivot tables are part of Excel, so you need a copy of Excel. Google Sheets also has pivot tables under the Insert menu, which are free with a Google account.
Related guides on Smart Work Tools
Color your results with conditional formatting, and see all our spreadsheet guides in the Excel & Google Sheets section.

No comments:
Post a Comment