Pivot Table Template: How to Build One in Excel

Charts & pivot tables · Updated November 22, 2026

A pivot table template is simply a pre-formatted Excel workbook (or a saved pivot table layout) that you reuse with new data, so you don’t have to rebuild the pivot table structure, formatting, and calculated fields from scratch each time. The fastest way to make one is to create a pivot table from a blank workbook, style it the way you want, then save that workbook as an Excel Template (.xltx) file or keep a copy with the pivot table but no data.

What a Pivot Table Template Actually Does

A pivot table template is not a special type of pivot table—it’s a regular pivot table saved in a reusable file. When you open the template, you get the pivot table’s layout (row areas, column areas, values, filters), its formatting (number formats, custom styles, banded rows), and any calculated fields or calculated items you defined. All you do is replace the source data range with your new data, then refresh the pivot table.

For example, you might have a monthly sales report that always shows:

  • Rows: Region
  • Columns: Month
  • Values: Sum of Sales
  • Filters: Year

Instead of dragging fields around each month, you open the template, point the pivot table to the new data, and refresh. The layout stays exactly the same.

How to Create a Pivot Table Template (Step-by-Step)

Here’s the cleanest method for Excel for Microsoft 365 on Windows (works on Mac with minor ribbon differences):

  1. Open a blank workbook and enter your sample data (or just a few rows with the same column headers you’ll use later).
  2. Select any cell in that data, go to Insert > PivotTable, choose “New Worksheet,” and click OK.
  3. Drag the fields into the areas you want (Rows, Columns, Values, Filters).
  4. Format the pivot table: apply a PivotTable Style (Design tab), set number formats on the value fields, adjust column widths, and add any calculated fields (Analyze > Fields, Items & Sets > Calculated Field).
  5. Delete the sample data (or just leave it—you’ll replace it later).
  6. Go to File > Save As and choose “Excel Template (*.xltx)” as the file type. Name it something like “SalesPivotTemplate.xltx”.

When you need to use it, open that .xltx file. Excel creates a new workbook based on the template. Paste your new data into the same location (or change the source range), then right-click the pivot table and choose Refresh.

How to Change the Data Source in a Template

If your new data has the same column headers and is in the same cells as the original sample, just paste it over and refresh. If the data is in a different location or size, you need to update the source range:

  1. Click anywhere inside the pivot table.
  2. Go to PivotTable Analyze > Change Data Source (on Mac: PivotTable Analyze > Change Data Source).
  3. Select the new range, or use a named range or an Excel Table for automatic resizing.
  4. Click OK and refresh.

To make the template truly “smart,” convert your source data to an Excel Table (Ctrl+T) before creating the pivot table. Then the pivot table will automatically pick up new rows when you refresh—no need to change the source range manually.

Common Problems and How to Fix Them

Here are the most frequent issues people hit when reusing a pivot table template:

  • “Pivot table doesn’t show new data” – You forgot to refresh. Right-click the pivot table and choose Refresh, or press Alt+F5 (Windows) / Option+Cmd+R (Mac).
  • “New columns are missing” – If you add a column to the source data, the pivot table won’t see it until you refresh, and only if the source range includes that column. Using an Excel Table fixes this.
  • “Formatting keeps disappearing” – Pivot table formatting (like number formats) can be lost when you refresh. To preserve them, go to PivotTable Analyze > Options (or right-click > PivotTable Options) and check “Preserve cell formatting on update.”
  • “The template has old data in it” – If you saved the template with actual data, you’ll see that data when you open it. Either delete the data before saving, or just replace it with new data and refresh.

Template vs. PivotTable Style vs. PivotTable Cache

People often confuse a template with a PivotTable Style or the pivot cache. A PivotTable Style is just a visual theme (banded rows, colors) that you can apply to any pivot table—it’s not a template. A pivot cache is the internal copy of the source data that Excel stores; when you copy a pivot table to another sheet, Excel may share the same cache, which can cause unexpected behavior if you change one pivot table’s data.

A true template is a file that contains the pivot table definition (layout, fields, calculations) and formatting, but not the data. When you open it, you get a fresh copy.

How to Choose the Right Template Approach

There’s no one-size-fits-all. Choose based on your needs:

  • Single-use template – If you only need the same layout once a month, just save a .xltx file as described above.
  • Multi-sheet dashboard – If you have several pivot tables on different sheets, save the whole workbook as a template. All pivot tables will be included.
  • Dynamic data range – If your data grows every month, use an Excel Table as the source and save that as a template. Then you only ever refresh.
  • No template at all – If your data structure changes often, it may be faster to create a new pivot table each time. Templates work best when the layout is stable.

Cost and Alternatives

Excel templates are free to create—they’re just Excel files. Microsoft also offers free pre-built pivot table templates on the Office website (File > New, search “pivot table”), but they are generic and may not match your data. Third-party sites sell premium templates, but you can usually build your own in minutes. If you don’t have Excel, Google Sheets has a similar feature: you can copy a sheet with a pivot table and replace the data range (Data > Pivot table). The concept is identical.

Frequently Asked Questions

Can I use a pivot table template without changing the data source?
Yes, if you paste your new data over the exact same range that the pivot table references, then refresh. The pivot table will pick up the new values automatically.

Why does my pivot table template show “blank” rows?
That usually happens when the source data range includes empty rows or columns. Clean up the source data, or use an Excel Table so the range shrinks to only the data.

Can I share a pivot table template with someone who has an older Excel version?
Yes, but save it as .xltx (Excel 2007 and later) or .xlt for older versions. If they have a much older version, some features like Slicers or Timeline may not work.

How do I stop a pivot table template from changing my number formats after refresh?
Right-click the pivot table, choose PivotTable Options, go to the Layout & Format tab, and check “Preserve cell formatting on update.” Also set the number format on the value field itself (right-click the value field > Value Field Settings > Number Format).

Is a pivot table template the same as a dashboard?
No. A dashboard is a visual summary, often with multiple pivot tables and charts. A template is just a reusable file. You can build a dashboard template that includes pivot tables, but they aren’t the same thing.

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.