Sum Daily Values Every Seven Days in Excel
Question details
Create seven-day totals from a column of daily values without writing a separate formula for each group.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains dates and daily values that need to be summarized in consecutive seven-day periods.
- Observed behavior
- Each total should include values from one seven-day period and exclude values from the next period.
Check that column A contains real Excel dates and column B contains numeric values. Identify the first date you want to use as the start of a seven-day period.
Use SUMIFS to total each seven-day period
Use date boundaries and copy one formula down to calculate consecutive seven-day totals.
Enter the first period's start date in G2. This example assumes dates are in A2:A22 and values are in B2:B22.
In G3, enter =G2+7. Copy G3 down to create enough start dates to cover your data, including a final boundary after the last period.
In H2, enter =SUMIFS($B$2:$B$22,$A$2:$A$22,">="&G2,$A$2:$A$22,"<"&G3). Adjust the ranges to match your data.
Drag the fill handle from H2 down alongside the remaining period start dates, stopping at the row before the final boundary.

Group dates into seven-day intervals in an Excel PivotTable
Use a PivotTable to summarize daily values without maintaining a separate list of formulas.
Sum seven-day periods in WPS Spreadsheets
Use SUMIFS in WPS Spreadsheets to calculate consecutive seven-day totals from daily dates and values.
- 1. Open the spreadsheet: Open your workbook in WPS Spreadsheets and check that dates are in A2:A22 and values are in B2:B22, or identify the corresponding ranges in your sheet.
- 2. Enter period boundaries: Enter the first start date in G2, then enter =G2+7 in G3. Copy G3 down to create the remaining boundaries, including one after the last period.
- 3. Calculate the first total: In H2, enter =SUMIFS($B$2:$B$22,$A$2:$A$22,">="&G2,$A$2:$A$22,"<"&G3), adjusting the ranges if needed.
- 4. Fill the remaining totals: Drag the fill handle from H2 down to the row before the final boundary. Use File > Save or Save As to save the workbook.

Frequently Asked Questions
Can I start each seven-day period on a Monday?
Yes. Enter a Monday date in G2, then use =G2+7 in G3 and copy it down. Each period will run from Monday through Sunday.
Will the SUMIFS formula work if some days are missing?
Yes. SUMIFS totals the values for dates present between the two boundaries; missing dates contribute nothing to the total.
How do I include new rows in the weekly totals?
Update all three ranges in the SUMIFS formula to include the new rows, such as changing A2:A22 and B2:B22 to A2:A100 and B2:B100. Then copy the updated formula down.
Why can't I group dates in my PivotTable?
The source date column may contain blanks or values stored as text. Correct the entries, right-click the PivotTable and select Refresh, then right-click a date and select Group.




