Pivot Table Issues

Calculate a Running Total Percentage in an Excel PivotTable

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 868 views

Question details

Calculate cumulative production as a percentage of total production and multiply that percentage by headcount.

Calculate a Running Total Percentage in an Excel PivotTable
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.
Before you start

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.

Solution 1Recommended

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.

1
Add production twice

In the PivotTable Fields pane, drag the production field into the Values area twice. Keep the first copy as the production total.

2
Set up the running 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.

3
Check the row order and total

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.

4
Calculate the percentage and headcount result

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.

Use a PivotTable running total and calculate the percentage outside it
Check formulas after refreshing: A PivotTable refresh can change its size or row positions. Check adjacent formulas after refreshing; for calculations that must handle changing groups and subtotals reliably, consider Power Pivot measures.
Calculate in WPS Spreadsheet

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. 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. 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. 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. 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.
Calculate cumulative production percentages and headcount-adjusted resultsOpen and save Microsoft Excel formats, including XLSXUse familiar spreadsheet formulas and formattingWork with a free, easy-to-use office suite
microsoft office alternative - wps office

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.