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 Day of the Week in Excel

How to Sum by Day of the Week in Excel

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

The short answer

To sum by day of the week, test each date with WEEKDAY inside SUMPRODUCT: =SUMPRODUCT((WEEKDAY(A2:A12,2)=1)*B2:B12) adds every Monday's sales. With return type 2, Monday is 1 and Sunday is 7. Or add a helper column with =TEXT(A2,"dddd") and use SUMIFS on the day names, which also works in a PivotTable.

Key takeaways

  • SUMIFS can't run WEEKDAY on a range, so use SUMPRODUCT or a helper column.
  • WEEKDAY(date,2) numbers the days Monday = 1 to Sunday = 7.
  • =SUMPRODUCT((WEEKDAY(A2:A12,2)>5)*B2:B12) adds weekend sales in one formula.
  • Divide the total by a count of the same days to get the average per weekday.
  • A helper column with the day name makes SUMIFS and PivotTables work too.
On this page+
  1. The sample data
  2. Why SUMIFS alone can't sum by weekday
  3. Method 1: Sum by day of week with SUMPRODUCT and WEEKDAY
  4. Method 2: a helper column and SUMIFS
  5. How to sum weekends or weekdays
  6. How to average by day of the week
  7. Why your weekday totals are wrong
  8. Practise it

To sum by day of the week in Excel, such as total sales on Mondays or on weekends, combine WEEKDAY with SUMPRODUCT in one formula, or add a helper column of day names and use SUMIFS. Both give the same totals. This guide shows each method on a small sales list, then adds weekend totals, averages per weekday and the mistakes that make the numbers look wrong.

The sample data#

All the examples use eleven days of sales in A1:B12. The dates are real dates, not text:

AB
1DateSales
2Mon 2 Nov 2026420
3Tue 3 Nov 2026380
4Wed 4 Nov 2026350
5Fri 6 Nov 2026510
6Sat 7 Nov 2026610
7Mon 9 Nov 2026455
8Tue 10 Nov 2026300
9Thu 12 Nov 2026470
10Sat 14 Nov 2026700
11Sun 15 Nov 2026260
12Mon 16 Nov 2026390

The day names are shown with a custom date format so you can check the answers. Excel doesn't need them.

Why SUMIFS alone can't sum by weekday#

SUMIFS compares cells with a condition, but it can't run a function on each cell first. Something like =SUMIFS(B2:B12,WEEKDAY(A2:A12,2),1) doesn't work: Excel rejects the formula, because the criteria range must be a real range of cells. You have two ways around that:

  1. SUMPRODUCT, which happily works with calculated lists (arrays).
  2. A helper column that holds the weekday for each row, so SUMIFS has a real range to check.

Method 1: Sum by day of week with SUMPRODUCT and WEEKDAY#

SUMPRODUCT can test every date and add the matching sales in one cell. For Mondays:

Excel formula
=SUMPRODUCT((WEEKDAY(A2:A12,2)=1)*B2:B12)

The result is 1,265 (420 + 455 + 390). Here is how it works:

  • WEEKDAY(A2:A12,2) turns each date into a day number. Return type 2 means Monday = 1 through Sunday = 7.
  • =1 gives TRUE for Mondays and FALSE for every other day.
  • Multiplying by B2:B12 turns TRUE into 1 and FALSE into 0, so only Monday's sales survive.
  • SUMPRODUCT adds the results.

To build a summary for every day, type the numbers 1 to 7 in D2:D8, with day names next to them in E2:E8, and in F2 fill down:

Excel formula
=SUMPRODUCT((WEEKDAY($A$2:$A$12,2)=D2)*$B$2:$B$12)
Day numberDayTotal sales
1Monday1,265
2Tuesday680
3Wednesday350
4Thursday470
5Friday510
6Saturday1,310
7Sunday260

The seven totals add up to 4,845, the same as =SUM(B2:B12), which is a quick check that no row was missed. For more on how this function multiplies and adds, see the SUMPRODUCT guide and the SUMPRODUCT function reference. The WEEKDAY function guide explains the other return types.

Method 2: a helper column and SUMIFS#

A helper column is easier to read and check, and it also works in a PivotTable. In C2, fill down either of these:

Excel formula
=WEEKDAY(A2,2)
=TEXT(A2,"dddd")

The first gives a number (1 for Monday). The second gives the full day name, such as Monday. Then total with SUMIFS:

Excel formula
=SUMIFS(B2:B12,C2:C12,"Monday")

The result is again 1,265. SUMIFS also lets you add more conditions, such as a store or product column. The SUMIFS function guide shows how.

One warning: TEXT returns day names in the language of your Excel settings, so "Monday" won't match on a computer set to French or German. If the file is shared across languages, use the WEEKDAY number instead.

How to sum weekends or weekdays#

Weekends are days 6 and 7 with return type 2, so one comparison covers both:

Excel formula
=SUMPRODUCT((WEEKDAY(A2:A12,2)>5)*B2:B12)

The result is 1,570 (Saturdays 610 and 700, plus Sunday 260). For Monday to Friday, use <6 instead, which gives 3,275. Together they add up to 4,845.

To limit the total to a date range too, multiply in another condition. With a start date in H1 and an end date in H2:

Excel formula
=SUMPRODUCT((WEEKDAY(A2:A12,2)=1)*(A2:A12>=H1)*(A2:A12<=H2)*B2:B12)

Each extra condition in brackets is another 1 or 0 for each row. For rolling periods, see how to sum the last 30 days.

How to average by day of the week#

A total can mislead when some weekdays appear more often than others. Here there are three Mondays but only one Sunday. Divide by the number of matching days to compare fairly:

Excel formula
=SUMPRODUCT((WEEKDAY(A2:A12,2)=1)*B2:B12)/SUMPRODUCT(--(WEEKDAY(A2:A12,2)=1))

The result is about 421.67: 1,265 over three Mondays. The -- turns TRUE and FALSE into 1 and 0 so SUMPRODUCT can count them. With a day-name helper column, =AVERAGEIFS(B2:B12,C2:C12,"Monday") gives the same answer. Saturday averages 655 a day, the busiest by both measures.

For other time groupings, see how to sum by week and how to sum by month.

Why your weekday totals are wrong#

Most problems come from the dates themselves.

  1. Dates stored as text. WEEKDAY can't read text that isn't recognised as a date, so you get #VALUE! or a wrong total. Real dates sit on the right of the cell by default. Convert text dates with DATEVALUE or Text to Columns.
  2. The wrong return type. With no second argument, WEEKDAY uses type 1, where Sunday is 1 and Monday is 2. Always write the 2 if you think of Monday as day 1.
  3. Ranges of different sizes. A2:A12 with B2:B11 makes SUMPRODUCT return #VALUE!. Make every range cover the same rows.
  4. Blank rows inside the range. A blank date counts as day 0, which WEEKDAY treats as a Saturday. Blank sales add 0, so totals are safe, but day counts for averages include them. Keep ranges to the filled rows.
  5. Dates with times. WEEKDAY ignores the time part, so 9 Nov 2026 18:30 is still a Monday. No fix needed.

Practise it#

Do the exercise on this page to total Monday sales with one formula. Then practise WEEKDAY, EDATE and EOMONTH in a live spreadsheet and build multi-condition totals in the COUNTIFS and SUMIFS lesson. Each step checks your formula as you type it.

Try it yourself

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

What were the total sales on Mondays? Click E2 and type =SUMPRODUCT((WEEKDAY(A2:A8,2)=1)*B2:B8), then press Enter.

fx
ABCDEF
1
Date
Sales
2
46328
420
Monday sales
3
46329
380
4
46333
610
5
46335
455
6
46336
300
7
46340
700
8
46342
390
9
10
11

Tip: WEEKDAY(date,2) gives 1 for Monday. The test (…=1) is TRUE or FALSE for each row; multiplying by the sales keeps only Monday's numbers.

Practise this in a lesson

LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonRenewals and month-ends: EDATE, EOMONTH, WEEKDAYShift dates by whole months with EDATE, jump to month-end with EOMONTH, and find the day of the week with WEEKDAY.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.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 day of the week in Excel?

+

Use =SUMPRODUCT((WEEKDAY(A2:A100,2)=1)*B2:B100) for Mondays, changing 1 to 2 for Tuesday and so on up to 7 for Sunday. Or add a helper column with =TEXT(A2,"dddd") and total it with SUMIFS.

Why can't I use WEEKDAY inside SUMIFS?

+

SUMIFS needs real cell ranges for its criteria ranges, not a calculated list like WEEKDAY(A2:A100). Use SUMPRODUCT, which accepts calculated arrays, or put WEEKDAY in a helper column and point SUMIFS at that column.

How do I sum only weekends in Excel?

+

Use =SUMPRODUCT((WEEKDAY(A2:A100,2)>5)*B2:B100). With return type 2, Saturday is 6 and Sunday is 7, so greater than 5 catches both. Use <6 instead for weekdays.

How do I average sales by day of the week?

+

Divide the day's total by the number of those days: =SUMPRODUCT((WEEKDAY(A2:A100,2)=1)*B2:B100)/SUMPRODUCT(--(WEEKDAY(A2:A100,2)=1)). With a day-name helper column, AVERAGEIFS does the same.

Sources

  • WEEKDAY function - Microsoft Support
  • SUMPRODUCT function - Microsoft Support
  • SUMIFS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 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. Why SUMIFS alone can't sum by weekday
  3. Method 1: Sum by day of week with SUMPRODUCT and WEEKDAY
  4. Method 2: a helper column and SUMIFS
  5. How to sum weekends or weekdays
  6. How to average by day of the week
  7. Why your weekday totals are wrong
  8. Practise it

Keep reading

Conditional math· 6 min read

How to Sum by Week in Excel

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.

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.

Dates· 6 min read

WEEKDAY in Excel: Find Weekends and Day Names

The Excel WEEKDAY function returns the day of the week as a number: =WEEKDAY(date) gives 1 for Sunday through 7 for Saturday. Add a return type of 2, as in =WEEKDAY(date,2), to make Monday 1 and Sunday 7. Then =WEEKDAY(date,2)>5 is TRUE only for Saturdays and Sundays.

More on conditional math

  • How to Sum by Quarter in Excel
  • How to Sum by Year in Excel
  • 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
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