Total only the transactions that fell on weekdays — or just weekends. SUMPRODUCT tests each date’s weekday and sums the matching amounts.
The example
Weekday sales separated from weekend.
| A | B | |
|---|---|---|
| 1 | Date | Sales |
| 2 | Fri | 200 |
| 3 | Sat | 150 |
| 4 | Weekday total | 200 |
The formula
Test the weekday, sum the matches:
How it works
A weekday test drives a conditional sum:
WEEKDAY(dates, 2)returns 1–7 with Monday = 1, so<= 5is Mon–Fri.- The comparison yields a 1/0 array; multiply by amounts to zero out the non-matches.
SUMPRODUCTtotals the survivors — the weekday sum.- For weekends, use
> 5; add a second condition (region, month) by multiplying another array in.
Specific day: (WEEKDAY(dates,2)=1) sums only Mondays. This SUMPRODUCT pattern handles any weekday logic SUMIFS can’t express directly, since SUMIFS has no “weekday” criteria.
Try it: interactive demo
Lines “yyyy-mm-dd,amount”.
Variations
Weekend total
Sat/Sun:
Specific day
Just Mondays:
Weekday + month
Add a factor:
Pitfalls & errors
WEEKDAY type. Use type 2 so Mon–Fri = 1–5; the default type makes Sunday = 1 and the test wrong.
Equal-length arrays. Dates and amounts must span the same rows.
Real dates. Text dates won’t feed WEEKDAY.
Practice workbook
Frequently asked questions
How do I sum only weekday amounts in Excel?
How do I sum weekends?
Why can't I use SUMIFS for this?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class