Calculation Issues

Sum Daily Values Every Seven Days in Excel

Elise WilliamsElise Williams Nov 18, 2026 870 views

Question details

Create seven-day totals from a column of daily values without writing a separate formula for each group.

Sum Daily Values Every Seven Days in Excel
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.
Before you start

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.

Solution 1Recommended

Use SUMIFS to total each seven-day period

Use date boundaries and copy one formula down to calculate consecutive seven-day totals.

1
Set the first start date

Enter the first period's start date in G2. This example assumes dates are in A2:A22 and values are in B2:B22.

2
Create the next boundary

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.

3
Enter the total formula

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.

4
Copy the formula down

Drag the fill handle from H2 down alongside the remaining period start dates, stopping at the row before the final boundary.

Use SUMIFS to total each seven-day period
How the date boundaries work: Each total includes the start date in column G but excludes the next start date. The periods begin on the weekday of the date you enter in G2.
Calculate weekly totals in WPS Spreadsheets

Sum seven-day periods in WPS Spreadsheets

Use SUMIFS in WPS Spreadsheets to calculate consecutive seven-day totals from daily dates and values.

  1. 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. 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. 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. 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.
Calculate repeated seven-day totals with one copied formulaOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with SUMIFS date criteria
microsoft office alternative - wps office

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.