Calculate Weekly Sales Averages and Subtotals in Excel PivotTables
Question details
Calculate weekly sales averages as weekly totals divided by seven while retaining meaningful category subtotals.

- 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.
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.
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.
Select the PivotTable and use the PivotTable Fields pane to place the week and category fields in Rows and the sales amount in Values.
Open the sales value field's menu, select Value Field Settings, and choose Sum. Refresh the PivotTable after any source data changes.
Select a category label, open Field Settings, and choose Automatic under Subtotals if category subtotals are needed.
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.
Build complete daily totals for an Average field
Use this approach when you want the PivotTable itself to average daily sales values.
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. Open the sales workbook: Open WPS Spreadsheets and choose Open to select your Excel sales workbook.
- 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. Show summed sales: Open the sales value field's settings and select Sum. Enable category subtotals in the category field settings if needed.
- 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.

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.




