To count how many dates fall on a particular weekday — how many Mondays, how many weekend orders — pair WEEKDAY with SUMPRODUCT. WEEKDAY turns each date into a day number; SUMPRODUCT counts the matches.
-- turns TRUE/FALSE into 1/0 for SUMPRODUCT to add.
The example
A handful of dates; count the Mondays.
| A | B | |
|---|---|---|
| 1 | Date | Day |
| 2 | 6/1/2026 | Mon |
| 3 | 6/2/2026 | Tue |
| 4 | 6/8/2026 | Mon |
| 5 | 6/13/2026 | Sat |
| 6 | Mondays: | 2 |
The formula
The Monday count:
How it works
Three steps inside one formula:
WEEKDAY(A2:A5)converts each date to a number 1–7. By default Sunday is 1, so Monday is 2.- Comparing
= 2builds a TRUE/FALSE array marking the Mondays. - The double negative
--coerces TRUE/FALSE to 1/0, and SUMPRODUCT adds them up —2. - Change the
2to target any day, or test>=6(with the right WEEKDAY type) to count weekends.
Count weekends in one shot: =SUMPRODUCT(--(WEEKDAY(A2:A10,2)>=6)). The 2 as WEEKDAY’s second argument makes Monday=1…Sunday=7, so Saturday and Sunday are 6 and 7.
Try it: interactive demo
Pick a weekday; count how many sample dates land on it.
Variations
Count weekends
WEEKDAY type 2 makes Sat/Sun = 6/7:
Count a weekday in a date range too
Multiply conditions:
Count weekday by name with TEXT
Alternative using the day name:
Pitfalls & errors
WEEKDAY numbering depends on the 2nd argument. The default makes Sunday=1. Pass 2 to make Monday=1. Match your comparison number to the type you chose.
Forgetting the --. Without coercion, SUMPRODUCT may add TRUE/FALSE as text and return 0. The double-negative (or multiplying by 1) fixes it.
COUNTIF can’t do this directly. COUNTIF has no way to evaluate WEEKDAY per cell, so SUMPRODUCT (or a helper column) is the tool.
Practice workbook
Frequently asked questions
How do I count how many dates fall on a certain weekday in Excel?
How do I count weekends?
Can I count a weekday within a date range?
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