Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Value Field Settings in Excel: How to Change Calculations

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Value Field Settings dialog box in Excel allows you to change how data is calculated and displayed within a PivotTable. By default, Excel sums numerical data and counts text data; this dialog box lets you switch those calculations to averages, maximums, minimums, or percentages of a total. To access it, you must first have a PivotTable created with at least one field placed in the "Values" area of the PivotTable Fields pane.

What You'll Need

  • Microsoft Excel (Desktop version for full functionality).
  • A dataset organized in a table or range.
  • An active PivotTable with at least one field in the Values area.

Step-by-Step

  1. Create or Select Your PivotTable: Ensure your PivotTable is active. If you haven't created one, select your data range, go to the Insert tab, and click PivotTable.
  2. Add a Field to Values: In the PivotTable Fields pane on the right side of the screen, drag a field (column) from the top list down into the Values area. (Note: Menu labels may vary slightly depending on your version of Excel or region).
  3. Open the Dialog Box: There are two ways to open the Value Field Settings:
    • Method A: Right-click any value cell within the PivotTable and select Value Field Settings... from the context menu.
    • Method B: In the PivotTable Fields pane, click the drop-down arrow next to the field name in the Values area and select Value Field Settings...
  4. Choose a Calculation (Summarize Values By): In the dialog box that appears, ensure you are on the Summarize Values By tab. Select the calculation you need from the list:
    • Sum: Adds all the numbers in the field.
    • Count: Counts the number of cells that contain data.
    • Average: Calculates the mean of the values.
    • Max/Min: Finds the highest or lowest value in the group.
    • Product: Multiplies the values together.
  5. Change the Display Calculation (Show Values As): If you want to see the data as a percentage rather than a raw number, click the Show Values As tab. Here you can choose options such as:
    • % of Grand Total: Shows the value as a percentage of the total sum of all data.
    • % of Column Total: Shows the value as a percentage of the total for that specific column.
    • Difference From: Compares the value to a specific base item.
  6. Format the Numbers: Click the Number Format button in the bottom-left corner of the dialog box. This opens the Format Cells window, where you can choose Currency, Accounting, Percentage, or Date formats. Click OK to return to the Value Field Settings.
  7. Apply Changes: Click OK on the Value Field Settings dialog box. Your PivotTable will immediately update to reflect the new calculation and formatting.

Common Mistakes

  • Confusing "Count" with "Sum": If your source data contains a single blank cell or a piece of text in a numerical column, Excel defaults to "Count" instead of "Sum." Users often think the PivotTable is broken when it is simply using the default setting for non-numeric data.
  • Formatting the Cell Instead of the Field: Many users try to change the number format by selecting cells in the PivotTable and using the Home tab formatting. This is a mistake because the formatting will often disappear when the PivotTable is refreshed or filtered. Always use the Number Format button inside the Value Field Settings dialog.
  • Overlooking "Show Values As": Users often try to calculate percentages manually in cells next to the PivotTable. This breaks the dynamic nature of the table; using the "Show Values As" tab is the correct way to handle percentages.

Tips

  • Rename Your Fields: At the top of the Value Field Settings dialog box, there is a Custom Name field. You can change "Sum of Sales" to simply "Total Sales" to make your report look more professional.
  • Multiple Versions of the Same Field: You can drag the same field into the Values area multiple times. For example, you can have one column showing the "Sum of Revenue" and another column showing the "% of Grand Total" for that same revenue field.
  • Quick Access: If you have many fields to change, using the drop-down menu in the PivotTable Fields pane is generally faster than right-clicking each column in the table.

Troubleshooting

If the Value Field Settings dialog box is not behaving as expected, try these steps:

  • Calculation not changing: Ensure you clicked OK and not the "X" or "Cancel" button. If the numbers still look wrong, check your source data for "numbers stored as text" (indicated by a small green triangle in the cell corner). Convert these to numbers using the Error Checking tool.
  • Number Format button is greyed out: This rarely happens in standard PivotTables, but if it does, ensure the PivotTable is not currently in "Edit" mode in a cell. Press Enter or Esc to exit the cell.
  • Cannot find the dialog box: If you are using Excel for the Web, some advanced "Show Values As" options may be limited compared to the desktop application. If a specific calculation is missing, open the file in the Excel Desktop App.

Frequently Asked Questions

Why does my PivotTable say "Count" instead of "Sum" by default?

Excel defaults to "Count" if the field you added to the Values area contains any non-numeric data, including empty cells. You can change this back to "Sum" using the Value Field Settings dialog box.

Can I use my own custom formula in Value Field Settings?

No, the Value Field Settings dialog only offers a set list of standard calculations. For custom formulas, you must create a "Calculated Field" via the PivotTable Analyze tab > Fields, Items, & Sets.

How do I remove the "Sum of" prefix from my column headers?

Open the Value Field Settings dialog and change the "Custom Name" at the top. Note: Excel will not let you use a name that is identical to a source data header. To bypass this, add a space at the end of the name (e.g., "Sales ").

Does changing the Value Field Settings affect my original data?

No. PivotTables are a summary layer. Any changes made in the Value Field Settings dialog only affect how the data is displayed in the PivotTable; your original source table remains untouched.

Can I show both the sum and the average of the same column?

Yes. Drag the same field into the Values area twice. Open the Value Field Settings for the first instance and set it to "Sum," then open it for the second instance and set it to "Average."