Written by Allen Wyatt (last updated May 31, 2025)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365
Robbie can use the WEEKNUM function to determine the week number in which a date occurs. He wonders if there is a way to do the reverse, to determine the starting date for a particular week number in a given year.
Before getting into figuring out the starting date for a week number, you need to realize that there are two general ways of calculating week numbers. The traditional way is to use the WEEKNUM function, which is apparently what Robbie is using. It returns a week number using January 1 as the first week of the year. The function restarts week numbers with every Sunday during the year. Thus, if January 1 is on a Saturday, then the next day (Sunday) will be in week number 2.
The other method is to use ISO week numbering, which is done with the ISOWEEKNUM function. In this scheme, week 1 is the first week in any year that contains a Thursday. Further, all weeks begin on Mondays. Because of this, the first few days of a year could belong to the last week in the previous year. Thus, you can only assume that January 4 of any given year will be in week 1 in the ISO world. (January 1, 2, and 3 could be in the previous year's weeks if the year begins on a Friday, Saturday, or Sunday.)
Note that not only do weeks begin on different days, but the starting week is determined differently. This means that you need different formulas to determine the starting date for a week number based on which numbering scheme is used.
Let's assume that cell A1 contains a year, and cell B1 contains a desired week number. If that week number is in the WEEKNUM scheme, as Robbie mentions, then the following formula will return the correct starting date for that week:
=DATE(A1,1,1) - WEEKDAY(DATE(A1,1,1),1) + 1+ (B1 - 1) * 7
Note that the formula bases the week number count on the week in which January 1 occurs but then shifts the starting date based on the day of the week on which January 1 falls. The last part of the formula determines the number of full weeks that occurred before the desired week number. Format the result as a date, and you are set. Remember, as well, that since weeks always start with Sundays, the returned date will always be a Sunday.
If you are working with ISO week numbers, then the following formula should be used to determine the starting date:
=DATE(A1,1,4) - WEEKDAY(DATE(A1,1,4),2) + 1 + (B1 - 1) * 7
The biggest difference with this formula is that the base date is January 4 and the shifting is done based on whether the Monday occurs before January 4 or not. Again, format the result as a date, and you are set. Also, ISO weeks always begin on Mondays, so the date returned will always be a Monday.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11098) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!
Need to know how many days there are between two dates? It's easy to figure out—unless you need the figure in ...
Discover MoreWhen you have a huge amount of daily data to analyze, you may want to calculate an average of values for any given date ...
Discover MoreIf you import information generated on a UNIX system, you may need to figure out how to change the date/time stamps to ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2025-06-01 11:18:36
J. Woolley
The Tip says WEEKNUM "restarts week numbers with every Sunday during the year." That's true only if its optional 2nd argument is 1 (the default) or 17.
The Tip says, "Let's assume that cell A1 contains a year, and cell B1 contains a desired week number." If A1 is 2025, B1 is 1, and C1 has the Tip's first formula
=DATE(A1, 1, 1) - WEEKDAY(DATE(A1, 1, 1), 1) + 1 + (B1 - 1)*7
then the date in C1 is 12/29/2024 and WEEKNUM(C1, 1) is 53, not 1.
This seems inconsistent with Microsoft's description of WEEKNUM: "The week containing January 1 is the first week of the year, and is numbered week 1."
One way to resolve this conundrum is to say that week number 1 always starts on January 1 even if January 1 is not a Sunday. In this case the formula in C1 should be
=LET(x, DATE(A1, 1, 1), y, (x - WEEKDAY(x, 1) + 1 + (B1 - 1)*7),
IF(YEAR(y) < A1, x, y))
When A1 is 2025 and B1 is 1, the date in C1 is 1/1/2025 (a Wednesday) and WEEKNUM(C1, 1) is 1.
2025-06-01 09:55:54
J. Woolley
For related discussion, see https://excelribbon.tips.net/T012603_Calculating_the_Last_Day_in_a_Week_Number.html
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments