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.

# ISO Week Numbers in Excel

by Allen Wyatt
(last updated November 1, 2018)

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.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Setting the Distance between Text and Borders

Add a border around a piece of text (such as a paragraph), and Word makes some assumptions about the placement of that ...

Discover More

Contingent Validation Lists

Data validation can be used to create lists of choices for entry into a particular cell. Using the techniques in this tip ...

Discover More

Detailed Measurements

Want to know exactly how far something on the ruler is from the left and right margins of your document? It's easy to ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

Converting Between Buddhist and Gregorian Calendar Systems

Converting from one calendar system to another can be a challenge. The key is identifying the differences between the ...

Discover More

Monthly Close-Out Dates

If your company closes out its accounting months at the end of each calendar quarter, figuring out the proper closing ...

Discover More

Days Left in the Year

Sometimes it is handy to know how many days are left in the current year. This tip provides a quick formula that ...

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. Youâ€™ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 3 + 8?

2020-01-24 05:28:24

Karl-Eric Devaux

Great article - there is a new function in EXCEL that solves this problem: ISOWEEKNUM
https://support.office.com/en-us/article/isoweeknum-function-1c2d0afe-d25b-4ab1-8894-8d0520e90e0e

##### This Site

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.