Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

WEEKNUM, ISOWEEKNUM

Week number by date in Excel - examples of WEEKNUM and ISOWEEKNUM functions
Function categoryDate and time functions
VolatilityNon-volatile
Similar functionsDAY, MONTH, YEAR, WEEKDAY

What WEEKNUM and ISOWEEKNUM 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)
Three ways to number weeks
E7=ISOWEEKNUM(A7)
ABCDE
1DateDayWEEKNUM (Sun)WEEKNUM (Mon)ISOWEEKNUM
201/01/2026Thu1=WEEKNUM(A2)1=WEEKNUM(A2,2)1=ISOWEEKNUM(A2)
301/04/2026Sun2=WEEKNUM(A3)1=WEEKNUM(A3,2)1=ISOWEEKNUM(A3)
401/05/2026Mon2=WEEKNUM(A4)2=WEEKNUM(A4,2)2=ISOWEEKNUM(A4)
510/22/2026Thu43=WEEKNUM(A5)43=WEEKNUM(A5,2)43=ISOWEEKNUM(A5)
612/31/2026Thu53=WEEKNUM(A6)53=WEEKNUM(A6,2)53=ISOWEEKNUM(A6)
701/01/2027Fri1=WEEKNUM(A7)1=WEEKNUM(A7,2)53=ISOWEEKNUM(A7)

WEEKNUM always starts week 1 on January 1, so the first and last weeks can be partial. ISO weeks start on Monday, and week 1 is the one with January 4: January 1, 2027 (Friday) still belongs to ISO week 53 of 2026.

Counts weeks starting from Monday.

ISOWEEKNUM

The ISOWEEKNUM function (Excel 2013 and later) returns the week number according to the international standard ISO 8601:

  1. The week starts on Monday,
  2. 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:

=ISOWEEKNUM(date)

Example:

=ISOWEEKNUM(TODAY())
ISO week with the right year
C3=YEAR(A3-WEEKDAY(A3,2)+4)
ABCD
1DateISO weekISO yearLabel
212/28/202653=ISOWEEKNUM(A2)2026=YEAR(A2-WEEKDAY(A2,2)+4)2026-W53=C2&"-W"&TEXT(B2,"00")
301/01/202753=ISOWEEKNUM(A3)2026=YEAR(A3-WEEKDAY(A3,2)+4)2026-W53=C3&"-W"&TEXT(B3,"00")
401/04/20271=ISOWEEKNUM(A4)2027=YEAR(A4-WEEKDAY(A4,2)+4)2027-W01=C4&"-W"&TEXT(B4,"00")

Near New Year, the ISO year can differ from the calendar year. The Thursday of the same week decides it: A2−WEEKDAY(A2,2)+4 is that Thursday, and YEAR of it is the ISO year. Use this pair for weekly reports that span two years.

WEEKNUM vs ISOWEEKNUM: the difference

  • 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.
  • ISOWEEKNUM 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

DATE, DATEDIF, DATEVALUE, DAY, EDATE, EOMONTH, HOUR, MINUTE, MONTH, NETWORKDAYS, NOW, SECOND, TIME, TIMEVALUE, TODAY, WEEKDAY, WORKDAY, YEAR, YEARFRAC

Like the article? Help its author! Buy !SEMTools, it has lots of useful instruments to process text data.