Pivot Table Issues

Calculate Weekly Sales Averages and Subtotals in Excel PivotTables

Algirdas JasaitisAlgirdas Jasaitis Nov 14, 2026 868 views

Question details

Calculate weekly sales averages as weekly totals divided by seven while retaining meaningful category subtotals.

Calculate Weekly Sales Averages and Subtotals in Excel PivotTables
Product
Microsoft Excel PivotTable
Device & OS
not provided
Scenario
A sales PivotTable displays weekly averages and category subtotals, including weeks with zero-sales days.
Observed behavior
The displayed averages do not match manual calculations because subtotals average underlying values and missing days can reduce the average denominator.
Before you start

Confirm that each reported week covers seven calendar days and that sales amounts are numeric. If you need to display daily averages, prepare one daily total per category and date, including zero-sales days.

Solution 1Recommended

Divide PivotTable weekly totals by seven

Use this method to calculate a full-week daily average without relying on the PivotTable's Average aggregation.

A PivotTable Average summarizes the underlying source values, which may be transactions rather than daily totals. A weekly sum divided by seven uses the same denominator even when no sales were recorded on some days.

1
Arrange the PivotTable

Select the PivotTable and use the PivotTable Fields pane to place the week and category fields in Rows and the sales amount in Values.

2
Sum the sales values

Open the sales value field's menu, select Value Field Settings, and choose Sum. Refresh the PivotTable after any source data changes.

3
Keep category subtotals

Select a category label, open Field Settings, and choose Automatic under Subtotals if category subtotals are needed.

4
Calculate the daily average

In a cell beside the PivotTable, enter a formula such as =B5/7, replacing B5 with the weekly total or category subtotal cell. Repeat for the totals you need.

Check references after refreshing: PivotTable rows can move when the layout or data changes. Review adjacent formulas after refresh, or use GETPIVOTDATA to retrieve the intended total by field and item.
Calculate weekly averages in WPS

Calculate weekly sales averages in WPS Spreadsheets

Use a PivotTable to sum weekly sales, then divide the weekly total or category subtotal by seven in a worksheet formula.

  1. 1. Open the sales workbook: Open WPS Spreadsheets and choose Open to select your Excel sales workbook.
  2. 2. Insert a PivotTable: Select the sales data and choose Insert > PivotTable. Place the week and category fields in Rows and the sales amount in Values.
  3. 3. Show summed sales: Open the sales value field's settings and select Sum. Enable category subtotals in the category field settings if needed.
  4. 4. Divide the weekly total: In a cell outside the PivotTable, enter =B5/7, replacing B5 with the relevant weekly total or subtotal cell. Check the reference after refreshing the PivotTable.
Calculate full-week daily averages from sales totalsKeep category subtotals visible in a PivotTableOpen and save Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the PivotTable average equal the weekly total divided by seven?

The Average setting uses the underlying source values, which might be transactions or records for only some days. Use a summed weekly total divided by seven, or average exactly seven daily totals, including zeros.

Do I need zero-sales rows when dividing the weekly total by seven?

No. Missing zero-sales rows do not change the sum, so dividing that sum by seven still gives the full-week daily average. Add zero rows if you want to display every day or use an Average field over daily totals.

Can I see the formula behind a PivotTable subtotal?

A regular PivotTable subtotal is generated by its aggregation setting rather than a conventional worksheet formula. Open the value field's Value Field Settings to see whether it uses Sum, Average, or another calculation.

Can I remove subtotals from only the average column?

PivotTable subtotal settings generally apply to the row or column field rather than just one value column. To keep summed subtotals without showing PivotTable averages, remove the Average field from Values and calculate the desired averages in cells outside the PivotTable.