
| Function category | Date and time functions |
| Volatility | Non-volatile |
| Similar functions | DAY, MONTH, YEAR, WEEKDAY |
What the functions do
The functions WEEKNUM and ISOWEEKNUM are used in Excel to determine the week number to which a specific date belongs. They are useful for reporting, weekly analysis, and calendar planning.
WEEKNUM
The formula returns the week number in the year for the specified date. Allows you to choose which day the week starts on and which calculation system to use.
Syntax:
=WEEKNUM(date, [return_type])Examples:
=WEEKNUM(TODAY())Considers Sunday as the first day of the week.
=WEEKNUM(A1, 2)Counts weeks starting from Monday.
WEEKNUM.ISO
The function returns the week number according to the international standard ISO 8601:
- The week starts on Monday,
- The first week of the year is the one that contains at least four days of the new year (meaning January 4 is always in the first week).
Syntax:
=WEEKNUM.ISO(date)Example:
=WEEKNUM.ISO(TODAY())Difference between the functions
- WEEKNUM offers different ways to calculate the start of the week (Sunday, Monday), but January 1 is always considered the first week, even if it’s the only day in the week that falls in the new year.
- WEEKNUM.ISO always uses Monday as the start of the week, but considers the first week only the week that contains January 4. In other words, if Sunday falls on January 1, 2, or 3, the week is considered the last week of the previous year, not the first week of the current year.
Other Date and Time functions in Excel
TIMEVALUE, TIME, YEAR, DATE, DATEVALUE, EDATE, DAY, WEEKDAY, YEARFRAC, EOMONTH, MONTH, MINUTE, WORKDAY, DATEDIF, TODAY, SECOND, NOW, HOUR, NETWORKDAYS
Like the article? Help its author! Buy !SEMTools, it has lots of useful instruments to process text data.
This post is also available in RU.