Adding data to a pivot table means either including new rows or columns from your source data, or changing the range the pivot table reads from. The fastest way is to select the pivot table, go to PivotTable Analyze > Change Data Source, and update the range. If you added rows at the bottom of your data, you can also use the Table feature so the pivot table updates automatically. This guide covers both methods, plus how to add a calculated field and what to do when the new data doesn’t show up.
What You’ll Need
- A workbook with a pivot table already created.
- The source data (the range or table the pivot is based on) with the new rows or columns added.
- Excel for Microsoft 365 on Windows (steps for Mac and Excel for the web are noted where they differ).
Step-by-Step
- Add the new data to your source range. Go to the worksheet that holds your original data. Type the new rows below the existing data, or add new columns to the right. Make sure there are no blank rows or columns inside the range—Excel stops reading at the first blank row or column.
- Select the pivot table. Click anywhere inside the pivot table. This opens the PivotTable Analyze tab (called Analyze on Mac) in the ribbon.
- Change the data source. On the PivotTable Analyze tab, click Change Data Source (in the Data group). In the dialog that opens, the current range is shown in the Table/Range box. Drag to select the new range on the worksheet, or type it manually (for example,
=Sheet1!$A$1:$D$200). Click OK. - Refresh the pivot table. Even after changing the source, the pivot table may not show the new data until you refresh. Right-click anywhere in the pivot table and choose Refresh. Or go to PivotTable Analyze > Refresh (the refresh icon).
- Add new fields to the pivot table. If you added new columns, they appear in the PivotTable Fields pane on the right. Check the box next to the new field to add it as a row, column, or value. Drag it to the desired area if you want it in a specific spot.
- Use an Excel Table for automatic updates (recommended). If your source data isn’t already a Table, convert it: select any cell in the data, press Ctrl+T (Mac: Cmd+T), and confirm the range. Then rebuild the pivot table from that Table (select the pivot, go to Change Data Source, and choose the Table name, e.g.,
Table1). Now when you add rows at the bottom of the Table, the pivot table includes them automatically after a refresh—no need to change the range each time. - Add a calculated field (if needed). To add a new field that isn’t in your source data, go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. Type a name, enter a formula (for example,
=Revenue - Cost), and click Add. This field appears in the field list and can be used like any other.
Common Mistakes
- Forgetting to refresh. Changing the source range doesn’t automatically update the pivot. Always refresh after adding data.
- Leaving blank rows or columns in the source. Excel treats a blank row as the end of the data. If you add data below a blank row, it won’t be included.
- Adding data to the right of the source without including it in the range. If you add a new column but don’t extend the range (or don’t use a Table), the pivot won’t see it.
- Using a named range that doesn’t expand. If you set the source to a named range like
DataRange, you must manually update that range to include new rows. A Table is easier. - Trying to add a row to the pivot table directly. You can’t type into a pivot table. You must add to the source data and refresh.
Tips
- Convert to a Table first. This is the single best tip for managing growing data. It makes the pivot table range dynamic.
- Use the
Refresh Allbutton. On the Data tab, click Refresh All to update all pivot tables and queries in the workbook at once. - Keep the source data on its own sheet. Avoid placing unrelated data directly below or to the right of your source, as it can confuse the range selection.
- Name your Table meaningfully. For example,
SalesDatainstead ofTable1, so it’s easier to identify in the Change Data Source dialog. - Check the field list after refreshing. New columns appear as fields. If you don’t see them, click the Refresh button again or close and reopen the field list.
Troubleshooting
New data doesn’t appear after refreshing. First, verify the source range actually includes the new rows. Select the pivot, go to Change Data Source, and check the range. If it’s correct, click OK and refresh again. If you’re using a Table, make sure the new rows are inside the Table (they should be, if you typed directly below the last row). If you typed a few rows below, drag the Table’s bottom-right corner down to include them.
The new column isn’t in the field list. This usually means the source range wasn’t updated to include that column. Change the data source to cover the new column, or convert to a Table and rebuild the pivot.
Excel says “Reference is not valid.” This happens when the range you typed doesn’t exist or has an error. Double-check the sheet name and cell references. For example, =Sheet1!$A$1:$D$200 must match the actual sheet name.
Pivot table shows old values even after refresh. Sometimes Excel caches the data. Try Ctrl+Alt+F5 to refresh all, or close and reopen the workbook. If that fails, delete the pivot table and create a new one from the same data.
Calculated field formula returns #DIV/0!. This means you’re dividing by zero or an empty cell. Use =IFERROR(your_formula, 0) to show 0 instead of an error.
Frequently Asked Questions
Q: Can I add a single row to a pivot table without changing the source range?
A: No. Pivot tables are summaries of source data. You must add the row to the source data and then refresh the pivot.
Q: How do I add a new column to a pivot table?
A: Add the column to your source data (with a header), then refresh the pivot. The new field will appear in the PivotTable Fields list. Drag it to the Rows, Columns, or Values area.
Q: Why does my pivot table not automatically include new rows?
A: Because the pivot table’s source range is fixed. Convert your source data to an Excel Table (Ctrl+T) and rebuild the pivot from that Table. Then new rows are included automatically after a refresh.
Q: What is the difference between refreshing and changing the data source?
A: Refreshing re-reads the same range to pick up changed values. Changing the data source tells the pivot table to look at a different or expanded range. You often need to do both when adding data.
Q: Can I add data to the pivot table directly by typing?
A: No, pivot tables are read-only. You can only change the underlying source data or add calculated fields/items.
Q: How do I add a calculated field that sums two existing fields?
A: Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. Name it (e.g., Total), enter =Field1 + Field2, and click Add. Use the field names exactly as they appear in the source data.
Related
- Computer Control Shortcuts: The Essential Guide
- How to Add Time in Excel: Sum Hours & Minutes
- JavaScript Update Dictionary: Add, Change, & Merge Keys
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Pie Chart: Count Occurrences for Each CategoryYes. To make an Excel pie chart count occurrences, first summarize how many times each category appears, then…
- Excel Histogram by Group: A Practical Comparison GuideTo compare an Excel histogram by group, use the same bin boundaries for every group, count each group’s…
- Excel Pivot Table: Move a Filter to Another AreaTo move a filter field in an Excel PivotTable, open the PivotTable Fields pane and drag the field…
- Line Graph in Graph Theory: Definition and ExamplesA line graph is a graph built from another graph by turning each original edge into a vertex;…
- Excel Stacked Bar Chart Total Labels: How to Add ThemTo show a total at the end of each stacked bar in Excel for Microsoft 365 on Windows,…
- Add a Trendline to an Excel Combo Chart: Full GuideTo add a trendline to an Excel combo chart in Microsoft 365 for Windows, select the chart, click…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.