Calculate a Running Total Percentage in an Excel PivotTable
Question details
Calculate cumulative production as a percentage of total production and multiply that percentage by headcount.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A user is building a PivotTable-style report by month or another ordered category.
- Observed behavior
- The desired report shows cumulative production percentages and their headcount-adjusted values.
Confirm that the source data contains production values, an ordered row field such as month, and the headcount to use. Decide whether headcount is fixed or varies by row, and whether the production denominator should reflect the current PivotTable filters.
Use a PivotTable running total and calculate the percentage outside it
Use this approach when you can add formulas beside the PivotTable and need to multiply each cumulative percentage by headcount.
A standard PivotTable calculated field is not well suited to referencing a previous row or subtotal. A running-total value field provides the cumulative production amount instead.
In the PivotTable Fields pane, drag the production field into the Values area twice. Keep the first copy as the production total.
Right-click a value in the second production field and select Value Field Settings. Open Show Values As, choose Running Total In, and select the month or other ordered row field as the base field.
Sort the row field into the intended sequence. Use PivotTable Design > Grand Totals to display a grand total if needed, and check that the active filters match the total you want as the denominator.
In cells outside the PivotTable, divide each running-total value by the relevant production grand total, then multiply by the applicable headcount. For example, if C2 contains the running total, D1 contains a reference to the grand total, and E2 contains headcount, enter =C2/$D$1*E2 and fill down. Format the division result separately as a percentage if you also want to display it.

Calculate cumulative production percentages in WPS Spreadsheet
Use WPS Spreadsheet formulas to build a report that divides cumulative production by total production and multiplies the result by headcount.
- 1. Open the production data: Open the workbook in WPS Spreadsheet and arrange the rows in the order needed for the report, such as chronological month order.
- 2. Calculate cumulative percentages: If production is in B2:B13, enter =SUM($B$2:B2)/SUM($B$2:$B$13) in C2 and fill the formula down. Select column C and apply percentage formatting.
- 3. Apply headcount: If the applicable headcount is in E2, enter =C2*E2 in D2 and fill down. For a fixed headcount, use an absolute reference to its cell instead.
- 4. Save the report: Select File > Save As and choose an Excel workbook format such as XLSX if you need to share the report with Excel users.

Frequently Asked Questions
Why not use a PivotTable calculated field for the running total?
A standard calculated field does not easily reference the previous item or subtotal. Use Value Field Settings > Show Values As > Running Total In to accumulate the production field instead.
How do I show the cumulative amount as a percentage?
Divide each running-total value by the relevant production grand total in a cell outside the PivotTable, then format that cell as a percentage. Check that the grand total reflects the filters you intend to use.
Should I multiply by one headcount or a different headcount for each row?
Use the headcount required by your report: reference a fixed headcount cell for all rows, or reference the applicable row's headcount when it varies. Confirm the intended interpretation before filling the formula down.
What happens to the formulas when I refresh the PivotTable?
The PivotTable may expand, shrink, or reorder its rows, so check formulas beside it after using PivotTable Analyze > Refresh. Consider Power Pivot measures if the calculation must respond reliably to changing groups and subtotals.




