How to Calculate Monday-to-Sunday Week-to-Date Counts Using COUNTIFS in Excel
Question details
The user needs a COUNTIFS formula that calculates the count of records for a reporting week that strictly begins on Monday and ends on Sunday, based on a reference date.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating a week-to-date report where the data needs to be filtered dynamically to fit an exact Monday-to-Sunday timeframe based on a target report date cell.
- Observed behavior
- The standard date range formulas may shift to other weekdays. The user needs to snap the date boundaries specifically to the Monday and Sunday of the week containing the reference date.
Identify the cell containing your target report date (e.g., B2) and ensure the data column you are evaluating contains valid spreadsheet date values, not plain text.
Use WEEKDAY with COUNTIFS to Define Monday-to-Sunday Boundaries
Combine the COUNTIFS function with the WEEKDAY function to automatically calculate the start (Monday) and end (Sunday) dates of the current week for your data range.
The WEEKDAY function is used to determine the day of the week for a given date. By setting the return_type parameter to '3', the function treats Monday as 0 and Sunday as 6. Subtracting this result from your reference date perfectly isolates the starting Monday of that week.
Select or designate a cell that contains the date you are basing your week-to-date report on. For example, assume cell B2 holds your reference date.
To dynamically find the Monday of the week containing the date in B2, use the formula: =B2-WEEKDAY(B2,3)
To find the corresponding Sunday, simply add 6 days to the calculated Monday: =(B2-WEEKDAY(B2,3))+6
Integrate these boundaries into your COUNTIFS function. Apply the greater-than-or-equal-to and less-than-or-equal-to operators joined by an ampersand. For example: =COUNTIFS('Annuity Tracker'!G:G, ">="&(B2-WEEKDAY(B2,3)), 'Annuity Tracker'!G:G, "<="&(B2-WEEKDAY(B2,3)+6))

Efficiently Manage Week-to-Date Reporting in WPS Spreadsheet
WPS Spreadsheet fully supports advanced logical and date functions, allowing you to seamlessly set up custom week-to-date formulas. Execute COUNTIFS and WEEKDAY equations with blazing speed for complex datasets.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your data tracking workbook.
- 2. Select the Reporting Cell: Click on the cell where you want the Monday-to-Sunday week-to-date count to be displayed.
- 3. Input the Formula: Paste your combined COUNTIFS and WEEKDAY formula into the formula bar and press Enter to automatically fetch the correct weekly count.

Frequently Asked Questions
Why use return type 3 in the WEEKDAY function?
Return type 3 in the WEEKDAY function assigns Monday as 0 and Sunday as 6. This makes calculating the start of a Monday-to-Sunday week mathematically straightforward, as subtracting the weekday number directly snaps the date back to Monday.
Can I modify this formula to start the week on Sunday instead?
Yes. If your reporting week starts on Sunday, use the default WEEKDAY return type (or 1), which assigns Sunday as 1. Subtract WEEKDAY(B2)-1 from your reference date to find the starting Sunday.
Why is my COUNTIFS formula returning an error or zero?
Double-check that your data range ('Annuity Tracker'!G:G in the example) actually contains valid date formats, not text strings. Also, verify that the logical operators are properly wrapped in quotes and joined with an ampersand, such as ">="&.
Will this formula work when a week crosses over into a new month?
Yes. Because Excel and WPS Spreadsheet store dates as sequential serial numbers, subtracting days to find a Monday will seamlessly carry over into the previous month or year without disrupting your count.




