A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear @Office worker,
Thank you for posting your question in the Microsoft Q&A forum! I understand you’re building a weekly case tracker and want to avoid duplicate week numbers when reporting across multiple years.
Using only WEEKNUM or hardcoded week numbers will cause duplication because weeks repeat each year.
Include both Year and Week Number in your calculation. For example, create a helper column with this formula:
=YEAR(B2)& "-" & WEEKNUM(B2,2)
Where A2 is your date. This will return values like 2025-27, ensuring each week is unique across years.
You can then update your COUNTIFS formulas to reference this combined Year-Week value instead of just the week number.
Alternative Approach:
Consider using PivotTables with the date field grouped by Year and Week. This avoids manual formulas and provides dynamic reporting.
For more details, please refer to these official resources:
If you want us to provide more clarity on the issue, please send us your excel sample, we will be happy to give you more detailed instructions directly.
Please let me know if you’d like step-by-step instructions for setting up the helper column or a PivotTable solution.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.