Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: ISO Week Numbers in Excel.
Written by Allen Wyatt (last updated February 5, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003
Excel provides a function that can be used to calculate the week number, of the year, of any given date. How you can use the WEEKNUM function has been recounted in other ExcelTips. There are some methods of determining weeks where the WEEKNUM function won't do, however. For instance, you may need to find the week number based on the ISO method of calculating weeks.
In the ISO scheme of things, weeks are calculated based upon the start of the week being Monday. Not so tough, right? However, the first week of the year is defined as beginning on the Monday of the week in which the first Thursday of January occurs. Whoa! This means that the first week of the year can actually begin on Monday, December 29, of the preceding year and it is possible that the last week of the preceding year can end as late as Sunday, January 3, of the current year.
This is too much for WEEKNUM to handle. Instead, you will need to use a formula to calculate the ISO week number for the year:
=INT((A1-DATE(YEAR(A1-WEEKDAY(A1-1)+4),1,3)+ WEEKDAY(DATE(YEAR(A1-WEEKDAY(A1-1)+4),1,3))+5)/7)
If you need more information on the how to handle ISO week numbers and dates in Excel, refer to these sources:
http://www.rondebruin.nl/win/s8/win002.htm http://www.cpearson.com/Excel/WeekNumbers.aspx
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7844) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: ISO Week Numbers in Excel.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Given a particular week number for a year, you may want to figure out the date of the last day in that week. There is no ...
Discover MoreWant to know which day of the month is the first business day? There are a few ways you can check to make sure the date ...
Discover MoreIf you use Excel to maintain a collection of data, you may need to find information in one column based on information in ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments