Pinterest Pixel

Change Count to Sum in Excel Pivot Tables

Bryan
By default, when you put any field into the VALUES area of the pivot table, it displays the count of values.
However, you may need to show the sum of the values of the field.

In this article, you will learn how to change the COUNT to SUM in a Pivot Table.

How to Change Count to Sum in Pivot Table

Method 1: Use Pivot Table Fields

STEP 1: Open the PivotTable fields and click on the arrow beside Count of SALES. In the dropdown, select Value Field Settings.

Change Count to Sum in Excel Pivot Tables

STEP 2: Select Sum and click OK.

Change Count to Sum in Excel Pivot Tables

Now your Sales values are being calculated as Sum instead of Count!

Change Count to Sum in Excel Pivot Tables

Method 2: Use Pivot Table cells

Step 1: Select any cell within the column.

Change Count to Sum in Excel Pivot Tables

Step 2: Right-click the cell and select Summarize Values By Sum from the drop-down menu.

Change Count to Sum in Excel Pivot Tables

As you can see, the field value has now been updated to SUM instead of COUNT.

 

Troubleshooting Common Pivot Table Sum Issues

Blanks Cells in Source Data

If the Pivot Table shows count instead of sum, it can be because the source data contains blank entries. To fill those blank cells with zero,

  • Press Ctrl + R to open Find & Replace
  • In Find what box, leave it empty
  • In the Replace with box, type 0
  • Press Replace All

Errors with Sum Function and How to Address Them

When you encounter errors within your source data, they can cascade into your PivotTable’s sum function, which can be quite the headache. Not to worry though, as you can tackle them with a few clever strategies. If your data fields have errors such as #DIV/0! or #VALUE!, these errors will appear in your PivotTable and corrupt sum totals.

Here’s what you can do: Consider removing or correcting the errors in your source data first. If that’s not possible, try applying the IFERROR function around your formulas to handle errors gracefully. For example, =IFERROR(A2/B2,0) replaces a division error with a zero.

Additionally, adjusting your PivotTable’s settings could help. Opt to use the “Count Numbers” function, which skips errors, text, and blanks, or “Count” which includes errors and numbers for a more accurate representation.

IFERROR Function: Introduction

 

Improve Excel Productivity

Create Summary Reports and Dashboards

One of the true strengths of Excel lies in its capability to create succinct, informative summary reports and dashboards from complex datasets. Crafting these high-level perspectives can be greatly simplified with PivotTables. To begin, select the range of data you want to analyze and insert a PivotTable. Then, drag and drop fields into the Rows, Columns, and Values areas to design your report layout. With the Values area, use the sum function for a cumulative analysis of your numeric data.

Dashboards elevate your reporting game; they provide an interactive way to visualize key metrics at a glance. By creating a PivotTable, you can then enhance it with PivotCharts, Slicers, and Timelines for a dynamic dashboard that provides insightful analysis and drill-down capabilities.

By changing the design and applying conditional formatting, you can spot important data trends and outliers.

Printing a Pivot Chart

Use Slicers for Data Analysis

Slicers are a great tool in Excel to examine your data. It can be used to filter the information shown in your PivotTable or PivotChart. To add slicers,

  • Click on your PivotTable
  • Go to the PivotTable Tools on the ribbon
  • Choose the Analyze tab
  • Select Insert Slicer
  • Select the fields you’d like to use as filters
  • With just a click, filter your data

These slicers are customizable, and you can alter the colors, buttons, and settings to make the slicer large or compact.

Use One Slicer for Two Excel Pivot Tables

 

FAQs

1. Why does my Pivot Table show Count instead of Sum?

When the source data contains text, blanks, or numbers stored as text, Excel shows a count of values in the Pivot Table.

2. How to change Count to Sum in a Pivot Table?

To change the count to sum in the Pivot Table,

  • Right-click any value in the Pivot Table.
  • Select Summarize Values By.
  • Click Sum to change the calculation from Count to Sum.

3. What is a Pivot Table?

A Pivot Table is a feature in Excel that helps you to quickly summarize large amounts of data without changing the original dataset.

4. How to refresh the Pivot Table after altering the data?

To refresh a Pivot Table,

  • Right-click anywhere in the Pivot Table.
  • Select Refresh from the menu.

5. How to use both Count and Sum in the same Pivot Table?

You can use both count and sum in the same Pivot Table by adding the same field twice in the value field. Then, apply different calculations to each field.

If you like this Excel tip, please share it




Bryan

Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).

He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.

See also  Show & Hide Field List in Excel Pivot Table

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...