Create Weekly Seven-Number Average Formulas in WPS Spreadsheets
Question details
Create a formula that calculates the average of seven values for each weekly block while leaving non-week-header rows blank.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- Weekly labels appear in one column, and the seven values for each week are stored in a repeating seven-row block beginning beside the label.
- Observed behavior
- The required result is one average on each row whose label begins with “Week,” with blank results on other rows.
Confirm that each weekly block contains exactly seven numeric cells and that the first weekly label is in D2 with the first value in E2. Change these references if your labels or values begin in different cells or run horizontally.
Use OFFSET to average the current seven-row weekly block
Use this method when each week begins on a labeled row and its seven values are listed vertically in the next seven rows.
The IF test displays a result only when the label in column D starts with “Week.” OFFSET creates a seven-cell, one-column range beginning at the matching value cell in column E.
Click the cell where the first weekly average should appear, such as F2 next to the label in D2.
Type =IF(LEFT(D2,4)="Week",AVERAGE(OFFSET(E2,0,0,7,1)),"") and press Enter. This averages E2:E8 when D2 begins with “Week.”
Drag the fill handle from the formula cell down the results column. Rows whose column D value does not begin with “Week” will show a blank result.
Replace D2 with your first label cell and E2 with the first value cell. If the seven values are arranged across columns rather than down rows, use OFFSET(E2,0,0,1,7) instead.

Store weekly values in a normalized table for long-term reporting
Use this approach when you need flexible summaries, filtering, or reporting across many weeks.
Calculate Seven-Value Weekly Averages in WPS Spreadsheets
WPS Spreadsheets lets you build conditional weekly-average formulas with IF, LEFT, AVERAGE, and OFFSET, then fill them down for repeated blocks. For scalable reporting, you can organize the values in a table and summarize each week with AVERAGEIFS or a PivotTable.
- 1. Open the worksheet in WPS Spreadsheets: Launch WPS Office and open the spreadsheet containing the weekly labels and seven-value blocks.
- 2. Choose the first average cell: Click the result cell beside the first Week label, such as F2.
- 3. Insert the conditional average formula: Enter =IF(LEFT(D2,4)="Week",AVERAGE(OFFSET(E2,0,0,7,1)),"") and press Enter.
- 4. Fill the formula through the report: Drag the fill handle down the column to calculate averages for each qualifying Week row.

Frequently Asked Questions
Why does the formula return a blank cell on some rows?
The formula uses LEFT(D2,4)="Week" as a condition. If the corresponding label cell does not start with “Week,” the IF function returns "" and displays a blank.
How do I average seven values arranged across columns instead of down rows?
Use a one-row, seven-column OFFSET range. For a block starting in E2, enter =AVERAGE(OFFSET(E2,0,0,1,7)) or place that expression inside the same IF condition.
Can I use a fixed range instead of OFFSET?
Yes. If the first weekly values are always E2:E8, use =IF(LEFT(D2,4)="Week",AVERAGE(E2:E8),""). OFFSET is useful when the formula must define a range relative to its current position.
What is the best formula for averages when every value has a Week column?
Use AVERAGEIFS. For example, if week names are in column A, values are in column C, and the target week is in H2, use =AVERAGEIFS($C:$C,$A:$A,H2).
Do blank cells affect a weekly average in WPS Spreadsheets?
No. AVERAGE ignores blank cells and text values, but numeric zeros are included. If every weekly block must contain seven entries, check for missing values before interpreting the result.




