Excel is a powerful reporting tool, providing options for both basic and advanced users. One of the easiest ways to create a report in Excel is by using the PivotTable feature, which allows you to sort, group and summarize your data simply by dragging and dropping fields. This pivot table Excel tutorial walks you through how to create a pivot table from scratch so you can turn raw data into meaningful reports in minutes.
A pivot table is a built-in Excel feature that lets you reorganize and summarize selected columns and rows of data to create a customized report. Instead of writing complex formulas or manually sorting through hundreds of rows, you drag and drop fields to instantly see totals, averages, counts and other calculations.
Pivot tables are useful across virtually every business function. Common use cases include:
The table below shows why pivot tables are often a better choice than building reports with manual formulas:
| Feature | Pivot Table | Manual Formulas |
|---|---|---|
| Setup time | Minutes | Can take hours |
| Updates automatically | Yes, with a single refresh | Formulas must be rewritten or copied |
| No formulas needed | Yes | Requires SUMIF, COUNTIF, VLOOKUP, etc. |
| Interactive filtering | Built-in slicers and filters | Requires manual re-sorting |
No matter the size of your dataset, a pivot table report gives you a fast, flexible way to analyze information and present it clearly.
Record your data in rows and columns. For example, data for a report on sales by territory and product might look like this:
A PivotTable report works best when the source data have:
Beyond these three rules, follow these additional best practices to ensure your pivot table works correctly:
Well-structured data is the foundation of an accurate pivot table. A few minutes spent cleaning your source data will save you troubleshooting time later.
Next, create the PivotTable report:
With each change, you'll see your PivotTable report take shape. If you decide you don't like the layout, just drag the fields to other positions.
From the PivotTable Design ribbon, choose a style for your report based on your theme's color schemes with options for header rows, header columns, totals and subtotals.
From the Home ribbon, set the number format for your data. Alternatively, right-click your data, choose Value Field Settings and click Number Format to apply formatting directly to a specific field.
Slicers are visual filter buttons you can add to a pivot table for interactive reporting. Instead of digging through menus, you and your audience can click a button to instantly filter the data on screen.
To insert a pivot table slicer:
A slicer panel appears on your worksheet. Click any value in the slicer to pivot table filter your report instantly. To filter by date, use the Timeline option in the same Analyze ribbon. Timelines work just like slicers but are designed specifically for date fields.
Slicers and filters make your pivot table reports interactive and presentation-ready, which is especially useful when sharing dashboards with colleagues or leadership.
A pivot chart is a visual representation of your pivot table data. It updates automatically whenever the underlying pivot table changes, keeping your charts and data in sync.
To create a pivot chart:
Your chart appears on the worksheet and reflects the same filters and layout as your pivot table. This is especially useful for dashboards and presentations where stakeholders need a quick visual summary rather than rows of numbers.
Do you want even more flexibility in your reports? Do you ever need to, say, connect to data in an external database or create charts based on your reports? All of these options are available with PivotTables!
Or, if you need more flexibility than PivotTables provide, you can:
No matter which option you choose, Excel is one of the most flexible reporting tools available today!
Creating a pivot table is just the beginning of what you can accomplish in Excel. Pryor Learning offers live virtual and In-Person Excel seminars as well as On-Demand courses covering pivot tables, formulas, dashboards and more. Hands-on, instructor-led training is one of the fastest ways to build confidence and move from beginner to power user. Explore Pryor's Excel training options to take your skills to the next level.