How to Add Fields to a Pivot Table
In this article
Adding fields to a pivot table lets you expand or refine your data summary without rebuilding the table from scratch. Whether you need to include another column of data, change how values are calculated, or add a filter, the process takes only a few clicks. This guide covers the steps for Microsoft Excel and Google Sheets, the two most common tools for pivot tables.
What You'll Need
- A pivot table already created from a data range or table.
- Access to the source data (the original dataset) to confirm the field names you want to add.
- Basic familiarity with your spreadsheet program (Excel or Google Sheets).
Step-by-Step
- Select the pivot table. Click anywhere inside the existing pivot table. This activates the PivotTable tools in Excel or the pivot table editor in Google Sheets.
- Open the field list.
- Excel: The PivotTable Fields pane appears on the right side of the window. If it doesn't, right-click the pivot table and choose Show Field List.
- Google Sheets: The Pivot table editor opens as a panel on the right. If it's hidden, click the pivot table and then click the Edit button that appears.
- Identify the field you want to add. In the field list, you'll see all columns from your source data. Fields already in use are checked or listed in the layout sections. Find the one you want to add.
- Add the field to the desired area. Drag the field name from the list into one of the four areas: Filters, Columns, Rows, or Values. Alternatively, use the checkboxes (Excel) or the Add buttons (Sheets) to place the field automatically—usually into Rows or Values.
- Choose the correct area.
- Rows: Use for categorical data you want to list vertically (e.g., product names, dates).
- Columns: Use for data you want to spread horizontally (e.g., quarters, regions).
- Values: Use for numeric data you want to summarize (e.g., sales, quantities).
- Filters: Use to slice the entire pivot table by a specific field (e.g., only show data for a certain year).
- Adjust value settings if needed. If you added a numeric field to Values, it defaults to Sum. To change it (e.g., to Average, Count, or Max):
- Excel: Click the field in the Values area, select Value Field Settings, choose the function, and click OK.
- Google Sheets: In the editor, under Values, click the field, then choose Summarize by and pick the function.
- Refresh the pivot table. If your source data has changed, right-click the pivot table and choose Refresh (Excel) or click the refresh icon (Sheets). Adding a field doesn't always require a refresh, but it's good practice.
Common Mistakes
- Adding a field to the wrong area. Putting a text field in Values gives you a count, not a sum. Putting a numeric field in Rows creates a long list of individual numbers instead of a summary.
- Dragging over an existing field. Dropping a field on top of another in the layout areas replaces it, which can remove data you wanted to keep.
- Forgetting to refresh after adding a field. If the field is new in the source data, it won't appear in the field list until you refresh the pivot table.
- Using blank rows or columns in the source data. If your data range has empty headers or stray rows, the field list may omit or mislabel fields.
Tips
- Use the checkbox for quick additions. In Excel, checking a field automatically adds it to the layout—usually to Rows if it's text, or Values if it's numeric. You can then move it to the right area.
- Rename value fields. Instead of “Sum of Sales,” rename it to “Total Sales” for cleaner reports. In Excel, use Value Field Settings; in Sheets, click the field and type a custom name.
- Add multiple fields to Rows. Drag more than one field to Rows to create a hierarchy (e.g., Region then Product). The order matters—the first field is the outer grouping.
- Use the Filter area for quick slicing. Adding a field to Filters creates a drop-down above the pivot table, letting you view specific subsets without changing the layout.
- Format your source data as a table. In Excel, Ctrl+T on the data range ensures new rows are included when you refresh. In Sheets, this is less critical, but keeping data contiguous helps.
Troubleshooting
- Field not appearing in the list. The field name might be misspelled in the source data, or the data range doesn't include that column. Check the source range and refresh the pivot table.
- Field appears but is grayed out. This usually means the field is already in use in the layout. Look for it in the Rows, Columns, Values, or Filters areas.
- Values show “Count of” instead of “Sum of”. This happens when the field contains blanks or text. Ensure the column has only numbers, or change the value setting to Sum manually.
- Dragging doesn't work. In Excel, if the field list is in a “stacked” mode, you may need to drag to the exact area label. Try using the checkboxes instead. In Sheets, click the Add button next to the field and then choose the area from the dropdown.
- New data isn't showing after adding a field. Right-click and refresh. If the source data range was expanded, you may need to update the range in the pivot table settings.
Frequently Asked Questions
Can I add a field that isn't in my original data?
No. Pivot tables only use columns from the source data. If you need a new field, add it as a column in the source data first, then refresh the pivot table.
Why does my text field show as “Count of” in Values?
Because text can't be summed. The pivot table defaults to counting occurrences. You can change it to other functions like Max or Min, but Sum only works with numbers.
How do I add a calculated field (e.g., profit = revenue - cost)?
In Excel, go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. In Google Sheets, you can add a calculated field in the pivot editor under Values by clicking Add and selecting Calculated field. You'll write a formula using existing fields.
Can I add a field to only part of the pivot table?
No. Fields apply to the entire pivot table. If you need different fields for different sections, create separate pivot tables or use slicers/filters to control what's shown.
Does adding a field change the original data?
No. Pivot tables are summaries. Adding fields only changes the view, not the underlying dataset.
Why can't I drag fields in Excel anymore?
This happens if the field list is in a non-draggable mode or the pane is too small. Try clicking the field's checkbox instead, or reset the pane layout by right-clicking and choosing Field Settings.