How to Calculate a Running Average for Weekly Excel Data
Question details
The user needs to calculate a running average for weekly data, ensuring that future blank weeks are ignored and only completed weeks are averaged.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking weekly percentages continuously over time where future weeks are currently left blank and should not skew the average calculation.
- Observed behavior
- The user requires a dynamic formula that averages only the cells containing data and updates automatically as new weekly metrics are entered into the row.
Ensure your weekly data is arranged consecutively in a single row or column, and leave future weeks completely empty rather than entering zero.
Use the AVERAGEIF Function to Ignore Blank Cells
Applying the AVERAGEIF formula ensures that only non-blank cells are calculated, creating a dynamic running average that updates smoothly.
While the standard AVERAGE function ignores completely blank cells, utilizing AVERAGEIF prevents issues if the future weeks contain hidden formulas that output empty text strings.
Click on the cell where you want the running average result to be displayed, such as cell T2.
Type the formula =AVERAGEIF($B2:$S2,"<>",$B2:$S2) into the formula bar. Adjust the range $B2:$S2 to match your actual data columns.
Press Enter to execute the calculation. As you enter additional weekly percentages into the blank cells later, the average will automatically update to reflect the newly completed weeks.

Calculate Dynamic Averages Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced formulas like AVERAGEIF. You can effortlessly track running weekly averages, manage complex data sets, and ensure high compatibility with Microsoft Excel formats.
- 1. Open your data file: Launch WPS Spreadsheet and open your weekly tracking workbook.
- 2. Apply the AVERAGEIF formula: Select your summary cell and input =AVERAGEIF($B2:$S2,"<>",$B2:$S2).
- 3. Track dynamically: Press Enter. Your running average will automatically adjust as you input new weekly metrics.

Frequently Asked Questions
Does the standard AVERAGE function ignore blank cells?
Yes, the standard =AVERAGE() function naturally ignores truly blank cells. However, using AVERAGEIF with the "<>" criteria is safer if your spreadsheet contains hidden formulas that return empty text strings ("").
What if my blank future weeks actually contain zeros?
If your future weeks contain numeric zeros instead of being blank, the standard AVERAGE function will include them, skewing your results. To ignore zeros, change your formula's criteria to =AVERAGEIF($B2:$S2,">0").
How do I calculate a running average for a column instead of a row?
The logic remains exactly the same. You just need to adjust the range references from a row format (like B2:S2) to a column format (like B2:B20) within your AVERAGEIF formula.




