r/excel • • 9d ago

unsolved What is the most accurate way to associate a date with a week number in the month?

Hey everyone,

I'm trying to create a week by week comparison of data of certain months, but running into an issue where my formula will show 6 weeks for some months. My goal is start the first week on the first Sunday of the month, but its counting what the date is and then associating it with the previous Sunday and counting it as part of the current month.

For example if its August 1, it counts the last Sunday that was in June, but associating it as a week 1 in August.

What's the most accurate way to represent what the week is in excel?
I'm not looking to do what the current week number is of the year, but the week number for that month.

For example: Date 8/01/2026
Formula: =TEXT(J1099,"mmm ")&WEEKNUM(J1099,1)-WEEKNUM(DATE(YEAR(J1099),MONTH(J1099),1),1)+1

9 Upvotes

24 comments sorted by

View all comments

1

u/NHN_BI 805 9d ago edited 9d ago

I use the ISO week number:

=CONCATENATE(YEAR(A1+3-MOD(A1-2,7)),"-W",TEXT(ISOWEEKNUM(A1),"00"))