Dear @Office worker,
Thank you for posting your question in the Microsoft Q&A forum!
Based your available information you've provided, I understand that you want to streamline the use of the COUNTIFS formula in Excel by dynamically adjusting the year-week data as you drag down the rows.
In this case, please try these formulas and check if it works:
In column A, generate the week labels:
="2025-" & TEXT(26 + ROWS($A$1:A1), "00")

In column B (your counts), reference that label:
=COUNTIFS(Main!$G$2:$G$184,"Surplus TBA",Main!$AR$2:$AR$184,A1)
This separates concerns: column A creates "2025-27", "2025-28", …; column B counts for whatever is in A.
Note: Please note that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Please kindly correct me if I am misunderstanding. Your understanding and co-operation are highly appreciated. I am looking forward to your response!
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.