How do I convert a count to a sum in a pivot table for multiple columns?
Mia Kelly
Published Jan 16, 2026
Alternatively, select and right-click the cell and select Value Field Settings from the drop-down menu. In the dialog box, go to Summarize Values By > Sum and click OK to change the function from count to sum.
How do I change the sum of a count in a PivotTable?
In the PivotTable Fields list, check the Qty field, to add it to the Values area. Qty appears in the pivot table as Sum of Qty. Right-click a cell in the Sum of Qty column. Point to Summarize Values By, then click Count.
How do I change the number format for multiple columns in a PivotTable?
Change the number format for a field
- In the PivotTable, select the field of interest. ...
- On the Analyze or Options tab in the Active Field group, click Field Settings. ...
- Click Number Format at the bottom of the dialog box.
- In the Format Cells dialog box, in the Category list, click the number format that you want to use.
How do I sum multiple cells in a PivotTable?
Sum values in a PivotTable
- In the PivotTable, right-click the value field you want to change, and then click Summarize Values By.
- Click the summary function you want. Note: Summary functions aren't available in PivotTables that are based on Online Analytical Processing (OLAP) source data. Use this summary function:
How do I convert a count to a total in Excel?
Change Count to Sum in Excel Pivot Tables
- STEP 1: Click on the arrow beside Count of SALES and select Value Field Settings.
- STEP 2: Select Sum and click OK.
- Step 1: Select any cell within the column.
- Step 2: Right-click the cell and select Summarize Values By > Sum from the drop-down menu.
How do you convert a count to a sum?
Alternatively, select and right-click the cell and select Value Field Settings from the drop-down menu. In the dialog box, go to Summarize Values By > Sum and click OK to change the function from count to sum.
Why is Excel giving me a count instead of sum?
This happens when your values are in text format and sum can not be performed and only Count can be performed. To test this, put few numbers in few cells and select them. The SUM should appear.
How do I change the grand total to an Average in a pivot table?
Go to Field Settings on the Ribbon, or click on the values field in the Pivot Table Field List under the values field, click on the dropdown arrow and select value field settings. Then select Average from the box in the middle.
How do I create a grand total Average in a pivot table?
The Grand Total average in the pivot table is adding up all of the cells in the quantity column of the data set and dividing it by the total number of orders.
How do I convert Rows to columns in Excel pivot table?
Click on the PivotTable row that you want to change to a column, and drag it over to the box labeled "Column Labels." The row now shows up as a column.
How do I add multiple columns to a pivot table?
Add multiple copies of a field in the Values area
- In the PivotTable Field List, in the PivotTable Fields box, click and hold a field, and then drag it to the Values area in the layout section.
- Repeat step 1 to create as many copies of that field that you want to display in the Value area.
How do I format all columns in a pivot table?
Use the Field Settings
- Right-click a value in the pivot field that you want to format.
- Click Field Settings.
- At the bottom left of the Field Settings dialog box, click Number Format. ...
- In the Format Cells dialog box, select the number formatting that you want, and click OK.
- Click OK, to close the Field Settings dialog box.
How do I change a count to a sum in Google Sheets?
Note: This feature doesn't work for some numbers or currency formats.
- On your computer, open a spreadsheet in Google Sheets.
- Highlight the cells you want to calculate.
- In the bottom right, find Explore. . Next to Explore, you'll see "Sum: total."
- To see more calculations, click Sum. Average. Minimum. Maximum. Count.
Can you add a grand total and average in PivotTable?
In the Pivot Table, Right click on the New Field's label cell, and click Field Settings. Under Subtotals, hit Custom. Grand Average. Finish with Ok.
How do I count a calculated field in a PivotTable?
Calculated Field With Orders Count Field
- Select a cell in the pivot table, and on the Excel Ribbon, under the PivotTable Tools tab, click the Analyze tab.
- In the Calculations group, click Fields, Items, & Sets, and then click Calculated Field.
- Type CountB as the Name.
- In the Formula box, type =Orders > 2.
How do I show only the total in a PivotTable?
Show or hide grand totals
- Click anywhere in the PivotTable to show the PivotTable Analyze and Design tabs.
- Click Design > Grand Totals.
- Pick the option you want: Off for Rows & Columns. On for Rows & Columns. On for Rows Only. On for Columns Only.
How do you add a total row to this table and display the average for the cost column instead of the sum of all the values?
Try it!
- Select a cell in a table.
- Select Design > Total Row.
- The Total row is added to the bottom of the table. ...
- From the total row drop-down, you can select a function, like Average, Count, Count Numbers, Max, Min, Sum, StdDev, Var, and more.
How do I do a weighted average in Excel?
So in Excel to calculate weightage average is SUMPRODUCT/ SUM. Weightage Average = SUMPRODUCT ( array1, [array2],[array3],...)/SUM (number1, [number2],...) And then hit enter, you will get your result 82.25.
How do you show the sum and count in Excel?
To quickly see how numbers in selected cells add up, take a look at the status bar below your spreadsheet. When you select two or more cells that have numeric data, Excel for the web automatically summarizes that data and shows the average, count, and sum on the status bar.
Why won't my cells sum in Excel?
The SUM function does not add up any values when there are spaces in its formula. Instead, it will display the formula in its cell. To fix that, select the formula's cell; and then click in the far left of the function bar. Press the Backspace key to remove any spaces before the '=' at the beginning of the function.
Why can't I sum in pivot table?
Reason No.
Excel expects your numeric data to be 100% numeric. If you have a dataset with 50,000 rows of numbers and one blank cell in the middle, the pivot table will count instead of sum. There is an easy way to convert the blanks to zero.
How do you sum random cells in Google Sheets?
Follow the steps below:
- Click any blank cell.
- Click the “fx” button. ...
- Select “FUNCTION” from the menu, then “MATH” and select “SUM.”
- To sum certain cells located in a random order, click on each one. ...
- To sum a range of cells – for instance, in the same row – type in the number of the first cell or click it.
How do you sum categories in Google Sheets?
The following step-by-step example shows how to do so.
- Step 1: Enter the Data. First, enter the data values into Google Sheets: ...
- Step 2: Find the Unique Categories. Next, we need to use the =UNIQUE(Range) function to produce a list of unique values in a certain range. ...
- Step 3: Find the Sum by Category.
How do I count numbers in Google Sheets?
Notes. Although COUNT is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function. COUNT counts all numeric values in a dataset, including those which appear more than once. To count unique values, use COUNTUNIQUE .
How do I change the data format in a PivotTable?
Change the style of your PivotTable
- Click anywhere in the PivotTable to show the PivotTable Tools on the ribbon.
- Click Design, and then click the More button in the PivotTable Styles gallery to see all available styles.
- Pick the style you want to use.
- If you don't see a style you like, you can create your own.