ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Conditional math
  3. How to Sum by Week in Excel

How to Sum by Week in Excel

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

List the first day of each week, then use SUMIFS with two date conditions: =SUMIFS(B:B,A:A,">="&D2,A:A,"<"&D2+7). It adds every amount dated on or after the week start in D2 and before the next week starts. To find the Monday of any date, use =A2-WEEKDAY(A2,2)+1. A pivot table grouped by 7 days also works.

Key takeaways

  • SUMIFS with ">="&start and "<"&start+7 adds exactly one week of dates.
  • =A2-WEEKDAY(A2,2)+1 returns the Monday of the week for any date in A2.
  • Use < start+7 rather than <= start+6 so dates with times on the last day are still counted.
  • WEEKNUM and ISOWEEKNUM give week numbers, but they can disagree around New Year.
On this page+
  1. The sample data
  2. Step 1: List the start of each week
  3. Step 2: Sum by week with SUMIFS
  4. Why use "<" next week instead of "<=" the last day
  5. Sum by week number instead
  6. Sum by week with a pivot table
  7. Why your weekly totals are wrong or zero
  8. Practise it

To sum by week in Excel, list the first day of each week and use SUMIFS with two date conditions: on or after the week start, and before the next week starts. One formula, filled down, gives you a weekly total for sales, hours or expenses. This guide shows that method, how to find the Monday of any date, the week-number approach and a pivot table option.

The sample data#

All the examples use this list of daily sales in A1:B8. The dates cover three weeks that start on Monday.

AB
1DateAmount
2Mon 2 Mar 2026120
3Wed 4 Mar 202685
4Fri 6 Mar 202660
5Mon 9 Mar 2026150
6Thu 12 Mar 202640
7Sun 15 Mar 202695
8Tue 17 Mar 202670

Column A must hold real dates, not text. A real date sits on the right of the cell by default. If yours sit on the left, convert them first, or no formula will add them.

Step 1: List the start of each week#

Type the Monday of each week in a column, for example D2:D4: 2 Mar 2026, 9 Mar 2026 and 16 Mar 2026. You can type the first one and use =D2+7 in D3, filled down, so you never miscount.

If you'd rather work it out from the data, this returns the Monday of the week for the date in A2:

Excel formula
=A2-WEEKDAY(A2,2)+1

WEEKDAY with return type 2 numbers the days Monday = 1 to Sunday = 7. Subtract that number and add 1, and you land on Monday. For Sunday 15 March, WEEKDAY returns 7, so the formula gives 15 − 7 + 1 = 9 March. Format the result as a date with Ctrl+1 (Mac: ⌘1).

For weeks that start on Sunday, use =A2-WEEKDAY(A2)+1. With no return type, WEEKDAY numbers Sunday = 1 to Saturday = 7.

Step 2: Sum by week with SUMIFS#

SUMIFS adds the numbers that meet every condition you give it. For one week, you need two conditions on the same date column. In E2:

Excel formula
=SUMIFS($B$2:$B$8,$A$2:$A$8,">="&D2,$A$2:$A$8,"<"&D2+7)

Here is what each part does:

  • $B$2:$B$8 is the range to add, the amounts.
  • ">="&D2 keeps dates on or after the week start. The & joins the operator to the date in D2.
  • "<"&D2+7 keeps dates before the next Monday.

Fill down to E4 (Windows: Ctrl+D; Mac: ⌘D). The $ signs keep the data ranges fixed while D2 moves to D3 and D4.

Week startWeekly total
2 Mar 2026265
9 Mar 2026285
16 Mar 202670

The first week is 120 + 85 + 60 = 265. Sunday 15 March falls in the week of 9 March, so the second week is 150 + 40 + 95 = 285.

The SUMIFS function guide explains the argument order. The same two-condition pattern powers a sum between two dates and a sum by month.

Why use "<" next week instead of "<=" the last day#

Ending the range at less than the next week's start is safer than less than or equal to the last day. Both give the same result for plain dates. But if your dates include times, such as 15 Mar 2026 14:30, the value is slightly more than 15 March. A condition of "<="&D2+6 would leave it out; "<"&D2+7 includes it.

The same habit works for months and years, which is why the guides to a month-to-date total and a year-to-date total use it too.

Sum by week number instead#

A week number is a count of weeks from the start of the year. Some reports label weeks this way ("Week 10"). Add a helper column C with:

Excel formula
=ISOWEEKNUM(A2)

ISOWEEKNUM follows the ISO standard: weeks start on Monday, and week 1 is the week that contains the first Thursday of the year. Mon 2 Mar 2026 is in week 10. Then total a week with SUMIF:

Excel formula
=SUMIF($C$2:$C$8,10,$B$2:$B$8)

That returns 265. A few warnings:

  • WEEKNUM is the older function. =WEEKNUM(A2,2) starts weeks on Monday but counts the week containing 1 January as week 1. It can disagree with ISOWEEKNUM, especially in early January and late December.
  • Week numbers repeat every year. If your data covers more than one year, add the year to the helper, such as =YEAR(A2)&"-W"&ISOWEEKNUM(A2), and sum on that. Note that the ISO year can differ from the calendar year for dates around New Year.
  • The week-start method avoids both problems, which is why it is the better default.

Sum by week with a pivot table#

A pivot table can group dates into weeks without any formula:

  1. Select the data and go to Insert > PivotTable, then click OK.
  2. Drag Date to Rows and Amount to Values.
  3. Right-click any date in the pivot and choose Group.
  4. Select Days only (deselect Months and any others), and set Number of days to 7.
  5. Set Starting at to a Monday, such as 2 March 2026 typed in your usual date format, and click OK.

The pivot shows one row per week, labelled with its first and last date (2 March to 8 March for the first week), with the same totals: 265, 285 and 70. If Starting at isn't a Monday, the weeks will start on whatever day it is, so check it.

Why your weekly totals are wrong or zero#

When a weekly SUMIFS returns 0 or a strange number, check these:

  1. Dates stored as text. SUMIFS can't compare text with a date. Convert the column with DATEVALUE or Data > Text to Columns.
  2. The operator outside the quotes. Write ">="&D2, not >=D2 or ">=D2". Inside quotes, D2 is just two letters.
  3. The wrong week start. If D2 is a Wednesday, each "week" runs Wednesday to Tuesday. Use the WEEKDAY formula to get Mondays.
  4. Ranges not locked. Without $, the ranges slide down as you fill, and later weeks miss rows.
  5. Ranges of different sizes. SUMIFS returns #VALUE! if the sum range and date range have different numbers of rows.

For yearly totals with the same approach, see how to sum by year.

Practise it#

Try the exercise on this page: one SUMIFS with two date conditions gives the first week's total. Then practise dates in criteria in a live spreadsheet, where you total by date range and month, and practise COUNTIFS and SUMIFS to get fast at multi-condition totals. Every formula is checked instantly.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The week starts on Monday 2 March 2026 (in D2). In E2, use SUMIFS to add the Amount (B2:B8) for dates on or after D2 and before D2+7.

fx
ABCDEF
1
Date
Amount
Week start
Total
2
46083
120
46083
3
46085
85
4
46087
60
5
46090
150
6
46093
40
7
46096
95
8
46098
70
9
10
11

Tip: Two conditions on the Date column: ">="&D2 and "<"&D2+7. Join each operator to the cell with &.

Practise this in a lesson

LessonDates in criteria: totals by date range and monthCount and total rows between two dates with COUNTIFS and SUMIFS, build a monthly summary, and drive the date range from input cells.LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.

Frequently asked questions

How do I sum values by week in Excel?

+

Type the start date of each week in a column, then use =SUMIFS(amounts,dates,">="&D2,dates,"<"&D2+7) next to it and fill down. Each row adds the amounts for one seven-day week.

How do I get the start of the week from a date?

+

For weeks that start on Monday, use =A2-WEEKDAY(A2,2)+1. For weeks that start on Sunday, use =A2-WEEKDAY(A2)+1. Format the result as a date.

How do I sum by week number in Excel?

+

Add a helper column with =WEEKNUM(A2,2) or =ISOWEEKNUM(A2), then use SUMIF on that column, such as =SUMIF(C2:C8,10,B2:B8). Add the year to the helper too if your data covers more than one year.

Can a pivot table group dates by week?

+

Yes. Right-click a date in the pivot, choose Group, select Days only, set the number of days to 7 and set the start date to a Monday or Sunday. Each group then covers one week.

Sources

  • SUMIFS function - Microsoft Support
  • WEEKDAY function - Microsoft Support
  • Create a PivotTable to analyze worksheet data - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The sample data
  2. Step 1: List the start of each week
  3. Step 2: Sum by week with SUMIFS
  4. Why use "<" next week instead of "<=" the last day
  5. Sum by week number instead
  6. Sum by week with a pivot table
  7. Why your weekly totals are wrong or zero
  8. Practise it

Keep reading

Conditional math· 6 min read

How to Sum by Month in Excel With SUMIFS

To sum by month in Excel, put the first day of the month in a cell, such as D2, and use SUMIFS with two date conditions: =SUMIFS(B2:B8,A2:A8,">="&D2,A2:A8,"<="&EOMONTH(D2,0)). EOMONTH returns the last day of that month, so the formula adds every amount dated from the 1st to the month end. Fill it down for a monthly summary.

Conditional math· 6 min read

How to Sum by Year in Excel

To sum by year in Excel, use SUMIFS with two date conditions: on or after 1 January and before 1 January of the next year. With the year in E2, write =SUMIFS(C2:C8,A2:A8,">="&DATE(E2,1,1),A2:A8,"<"&DATE(E2+1,1,1)). A shorter option is =SUMPRODUCT((YEAR(A2:A8)=E2)*C2:C8), and a PivotTable can group dates by year.

Conditional math· 7 min read

Sum by Date Range or Month in Excel With SUMIFS

To sum between two dates, give SUMIFS the same date column twice: once with ">="&start and once with "<"&end. For January 2025, write =SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,2,1)). Keep the operator in quotes and join the date with &. Using "before the 1st of next month" works for every month.

More on conditional math

  • Sum the Last 30 Days in Excel With SUMIFS and TODAY
  • How to Use SUMIF in Excel
  • SUMIF Blank and Not Blank Cells in Excel
  • SUMIF Contains Text: Sum by Partial Match
  • SUMIF Greater Than or Less Than a Number
  • SUMIF Not Equal To: Exclude a Value From a Total
All conditional math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free