How many Mondays are in this month? SUMPRODUCT over the month’s days, testing the weekday, counts them — useful for staffing, payroll periods, and scheduling.
The example
June 2026 has 5 Mondays.
| A | B | |
|---|---|---|
| 1 | Month | # Mondays |
| 2 | June 2026 | 5 |
The formula
Count matching weekdays across the month:
How it works
Build the month’s days, test the weekday, sum the hits:
- Generate the day-of-month sequence with
ROW(INDIRECT("1:"&daysInMonth)). - Add them to (first day − 1) to get every actual date in the month.
WEEKDAY(…, 2)=1tests for Monday (type 2: Mon=1); multiply by 1 to turn TRUE/FALSE into 1/0.SUMPRODUCTsums the 1s — the count of that weekday. Change the=1for other days.
If you already have a date column, it’s far simpler: =SUMPRODUCT((WEEKDAY(dates,2)=1)*(MONTH(dates)=6)) counts Mondays in June from a list. The INDIRECT version is for when you only have the month, not a list of dates.
Try it: interactive demo
Pick a month and weekday.
Variations
From a date list
Simpler if you have dates:
Weekdays in month
All working days:
Weekends in month
Total days minus workdays.
Pitfalls & errors
INDIRECT is volatile. The text-built range recalculates often; on big models prefer a real date list or NETWORKDAYS.
WEEKDAY type. Use type 2 (Mon=1) consistently, or your target number won’t match the day you mean.
First day of month. Anchor on DATE(y,m,1) so the day sequence starts correctly.
Practice workbook
Frequently asked questions
How do I count how many Mondays are in a month in Excel?
How do I count all working days in a month?
Why is my count off?
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