Self-Contained Pivot Table: Step-by-Step Guide
In this article
This guide walks you through creating a self-contained pivot table—a summary table that works independently of the original data source. This means you can share the pivot table with others, move it to a different workbook, or archive it without breaking the calculations. You'll learn how to build one from scratch using Excel's built-in tools, ensuring your summary remains intact even if the source data is deleted or moved.
What You'll Need
- Microsoft Excel (2016 or later, including Microsoft 365) or a similar spreadsheet application that supports pivot tables (like Google Sheets, though the steps differ slightly).
- A dataset you want to summarize. It should be in a tabular format with clear column headers and no blank rows or columns.
- Basic familiarity with Excel's ribbon interface.
Step-by-Step
- Prepare your data. Ensure your data is in a clean table format. Each column should have a unique header, and there should be no empty rows or columns within the data range. If you have multiple sheets of related data, consider combining them into one sheet first, or use the Data Model (see Tips).
- Create a pivot table from your data. Click anywhere inside your data range. Go to the Insert tab on the ribbon and click PivotTable. In the dialog box, ensure the correct range is selected and choose where you want the pivot table placed—either a new worksheet or an existing one. Click OK.
- Build your pivot table. In the PivotTable Fields pane (usually on the right), drag fields into the Rows, Columns, and Values areas. For example, if you have sales data, you might drag "Region" to Rows, "Product" to Columns, and "Sales Amount" to Values. Excel will automatically aggregate the values (usually by sum).
- Customize your summary. Right-click on any value in the pivot table to change the summary function (e.g., from Sum to Average or Count). You can also format the numbers, sort the rows, and apply filters directly in the pivot table.
- Make it self-contained. The key step: after you've built your pivot table, you need to convert it to a static version that doesn't reference the original data. Here are two reliable methods:
Method A: Copy and Paste as Values
Select the entire pivot table (including headers). Press Ctrl+C to copy. Then, right-click on a new location (like a new sheet) and choose Paste Special > Values. This creates a static copy of the numbers. However, this loses the interactivity (like expand/collapse).
Method B: Use the PivotTable Options to Remove Source Reference
Right-click on the pivot table and select PivotTable Options. Go to the Data tab and uncheck the box that says "Save source data with file". Then, go to the Alt Text tab and type a description if desired. This reduces the file size and removes the cached data, but the pivot table still contains a reference to the source range. To fully break the link, you can copy the pivot table and paste it as a picture (but that's not editable). The most practical way to have a fully independent, editable summary is Method A. - Verify the result. After converting to values, check a few numbers against your original data to ensure they match. Also, try deleting the original data sheet—the static copy should remain unchanged.
- Format and finalize. Apply formatting to your static summary (borders, fonts, number formats) so it looks professional. You can also add a title and notes.
Common Mistakes
- Forgetting to refresh the pivot table before copying. If you change the source data after creating the pivot table, you must refresh it (right-click > Refresh) before copying, or your static copy will contain outdated numbers.
- Including blank rows/columns in the source range. This can cause the pivot table to miss data or create extra empty fields.
- Copying only part of the pivot table. When using Paste Special, make sure you select the entire pivot table, including row and column labels, otherwise you'll get a partial summary.
- Assuming the static copy will update. A pasted-as-values copy is static; it will not change when the original data changes. This is intentional for a self-contained table, but it's a common point of confusion.
Tips
- Use Excel Tables for source data. Convert your data range to an Excel Table (Ctrl+T) before creating a pivot table. This ensures that if you add new rows, the pivot table's source range automatically expands, and refreshing picks up the new data.
- Leverage the Data Model. If you have multiple related tables, you can create a pivot table using the Data Model (check "Add this data to the Data Model" in the Create PivotTable dialog). This allows you to create relationships between tables, but the resulting pivot table is still dependent on the workbook's data model.
- Create a template. If you regularly need self-contained summaries, create a template with the static copy already formatted, so you can quickly paste new data into it.
- Use Slicers before copying. If you want a self-contained summary that still allows filtering (like a dashboard), you can add slicers to the pivot table, then copy the entire sheet (including slicers) and paste it as a picture or as a linked picture. This preserves the visual but not the interactivity.
Troubleshooting
- Pivot table shows "Blank" or "0" after copying. This usually happens if you copied the pivot table before refreshing it, or if the source data had blanks. Refresh the pivot table before copying, and ensure your source data has no blank cells in the value columns.
- The static copy is too large or slow. If you copied a large pivot table as values, the file size can increase. Consider summarizing only the necessary fields, or use a pivot chart instead.
- Pivot table won't refresh because source data is missing. If you've already deleted the source data, you cannot refresh the pivot table. That's why it's crucial to make a static copy before deleting anything.
- Paste Special > Values is grayed out. This can happen if you're trying to paste into a cell that's within the pivot table itself. Paste into a new location outside the pivot table range.
- Formulas in the pivot table are not copying. Pivot tables use a special calculation engine; you cannot copy formulas from a pivot table directly. Use the Paste Special > Values approach to get the numbers.
Frequently Asked Questions
- Can I make a self-contained pivot table in Google Sheets? Yes, but the steps differ. In Google Sheets, you can copy the pivot table and use "Paste special" > "Paste values only" to create a static copy. The interactive pivot table remains linked to the source range.
- Will a self-contained pivot table update if I change the original data? No. Once you convert it to static values, it's just numbers. If you need it to update, keep it as a regular pivot table and refresh it.
- What's the difference between "Save source data with file" and a static copy? Unchecking "Save source data with file" removes the cached data from the pivot table, reducing file size, but the pivot table still has a reference to the source range. A static copy (paste as values) has no link at all.
- Can I still filter a self-contained pivot table? If you paste as values, you lose the filter drop-downs. You can add your own filters using Excel's AutoFilter (Data > Filter) on the static copy, which works independently of the original data.
- How do I make a self-contained pivot chart? Create a pivot chart from your pivot table, then copy the chart and paste it as a picture (or use "Copy" > "Paste Special" > "Picture"). This makes it a static image that doesn't change.
- Is there a way to make a self-contained pivot table that still allows expansion? Not directly. If you need expand/collapse functionality, you must keep it as a pivot table. You could create a static copy and then use grouping in Excel to simulate expand/collapse, but it's not the same.