Sub topic 7
Adding value fields
A value field is the field you drop in the Values area of the PivotTable Fields pane. The PivotTable calculates it for every cell of the grid. Row and column fields decide where a number appears. The value field decides which number appears and how it is calculated.
This chapter assumes you can already insert a PivotTable and place fields in the Rows and Columns areas. It also assumes you know how to read the Fields pane. Choosing among Sum, Count and Average is covered in the next chapter, so here we focus on how value fields are added, named, repeated and formatted.
What a value field does
Each cell in the body of a PivotTable is an aggregate. Excel takes every source record that matches that cell's row and column labels, then combines the values of the chosen field into one result.
Use the sample data from earlier chapters:
Date,Region,Product,Units,Sales
2025-01-05,East,Widget,10,250
2025-01-12,West,Gadget,4,180
2025-02-03,East,Gadget,7,315
2025-02-14,West,Widget,12,300
2025-03-09,East,Widget,5,125Put Region in Rows, Product in Columns, and Sales in Values. The layout is:
Rows: Region
Columns: Product
Values: Sum of SalesThe East and Widget cell shows 375. That is the sum of Sales for the two East Widget records (250 and 125). The grid holds one result per Region and Product pair, plus grand totals.
Adding a value field
There are three ways to add a field to Values.
- Tick the check box next to a numeric field in the Fields pane. Excel places numeric fields in Values by default and text fields in Rows.
- Drag the field from the field list into the Values box.
- Right-click the field name in the list and choose Add to Values.
The default summary depends on the data. Excel uses Sum when every value in the column is numeric. It uses Count when the column contains any text or any blank cell. That rule explains many surprises, and the troubleshooting chapter returns to it. If a field you expected to sum shows up as "Count of Sales", the column contains something Excel does not read as a number.
Adding the same field more than once
You can drag the same source field into Values several times. Each copy is an independent value field with its own summary function and number format. This is how you show a total and an average side by side without changing the data.
For example, add Sales twice. The first copy stays as Sum of Sales. Change the second to Average. Excel names it "Average of Sales". Add Units as well, and the pane lists three value fields.
Two things to watch:
- Every extra value field adds a column or row to the grid. A PivotTable with Product in Columns and three value fields produces three sub-columns under each product.
- Excel shows a Σ Values item in the Columns or Rows area. It represents the set of value fields, and you can drag it to control where they appear.
Where multiple value fields appear
When there is more than one value field, Excel adds Σ Values to the Columns area by default. The value fields then sit side by side under each column label. Dragging Σ Values to Rows stacks them vertically instead.
Choose the orientation by how many items you have. A wide grid is hard to read, so when Columns already holds a field with many items, move Σ Values to Rows.
Renaming a value field
Excel names a value field by combining the summary and the source name, such as "Sum of Sales". You can replace this label.
- Click any cell in that value field.
- Open PivotTable Analyze, then Field Settings. You can also right-click the cell and choose Value Field Settings.
- Type a new text in the Custom Name box and click OK.
Excel does not allow a custom name that matches an existing source field name exactly. If you type "Sales", Excel rejects it because a field called Sales already exists. A common workaround is to add a trailing space ("Sales ") or to choose a different label such as "Total Sales". The trailing space looks identical but can confuse people who later edit formulas, so a distinct wording is the safer choice.
Number formatting on a value field
The cell number format for a PivotTable is easily lost. If you format the cells with the Home tab, the format can disappear after a refresh or layout change. Set it on the field instead.
- Open Value Field Settings.
- Click Number Format.
- Choose a category, such as Currency or Number with thousands separator, then click OK.
The format is stored with the value field and survives refreshes and layout changes. Because each value field has its own format, you can show Sales as currency and Units as a whole number in the same PivotTable.
Reordering and removing value fields
The order of fields inside the Values box sets the order in which they appear. Drag a field up or down in the box to reorder it. To remove a value field, drag it out of the Values box or clear its check box in the field list. The source data is never touched. Only the PivotTable changes.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Field shows "Count of Sales" instead of a sum | The column contains text or blank cells | Clean the data, then change the summary to Sum |
| Rename fails with an error | The custom name equals a source field name | Use a different label |
| Number format reverts after refresh | Format applied to cells, not the field | Use Number Format in Value Field Settings |
| Values look repeated or very wide | Several value fields with Σ Values in Columns | Move Σ Values to Rows |
Worked example
Goal: show total sales, average sale and total units for each region.
- Place Region in Rows.
- Add Sales to Values. Rename it "Total Sales" and format it as Currency.
- Add Sales to Values a second time. Open Value Field Settings, set the summary to Average, rename it "Average Sale" and format it as Currency.
- Add Units to Values and rename it "Total Units".
For the sample data, East has total sales of 690 and total units of 22. West has total sales of 480 and total units of 16. Excel calculates the East average sale as 230 (690 divided by 3 records) and the West average as 240.
The first two value fields use the same source column but different summaries, which is the main reason to add a field twice.
Exercise
Your PivotTable has Region in Rows and three value fields. The values appear in three wide columns, but you want them stacked under each region. What do you change, and what happens if you try to name a value field "Units" when the source column is also called Units?
Show answer
Drag the Σ Values item from the Columns area to the Rows area, so the value fields stack beneath each region. Excel rejects the custom name "Units" because it matches an existing source field name, so use a different label such as "Total Units".
Exercise
You format the Sales cells as currency with the Home tab, then refresh the PivotTable and the format is lost. How do you make the format permanent?
Show answer
Open Value Field Settings for the Sales value field, click Number Format, and choose Currency. The format is then stored with the value field and survives refreshes and layout changes.