Menu

Excel Week Number: WEEKNUM vs ISOWEEKNUM

=WEEKNUM(A2) returns the week number of the date in A2, with weeks starting on Sunday. =ISOWEEKNUM(A2) returns the ISO week used in Europe, where weeks start on Monday. The start date of a week and a date from a week number.

Every sheet on this page is live: change a number or a formula and it recalculates.

=WEEKNUM(A2) returns the week number of the date in A2. By default weeks start on Sunday and week 1 is the week that contains January 1. Most of Europe uses ISO week numbers instead, where weeks start on Monday: for those, use =ISOWEEKNUM(A2).

Week numbers around New Year
B2
ABCD
1DateWEEKNUMISOWEEKNUMDay
22026-03-021010Mon
32026-12-275352Sun
42026-12-315353Thu
52027-01-01153Fri
62027-01-03253Sun
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

The two systems agree on most dates and part ways around New Year. Friday 2027-01-01 is in week 1 by WEEKNUM, because week 1 always contains January 1. By ISOWEEKNUM it is in week 53 of 2026: ISO week 1 is the week with the year's first Thursday, and that week starts on Monday, January 4. Sunday 2026-12-27 shows the other difference: WEEKNUM has already started week 53, because its weeks start on Sunday.

WEEKNUM return types

WEEKNUM takes a second argument that sets the day a week starts on. Type 21 switches it to the ISO system, the same as ISOWEEKNUM, which helps in older Excel: ISOWEEKNUM needs Excel 2013 or later.

return_typeWeek starts onWeek 1
1 or omittedSundaycontains January 1
2Mondaycontains January 1
11 to 17Monday to Sundaycontains January 1
21Mondaycontains the first Thursday (ISO 8601)
The same dates, four return types
C2
ABCDE
1DateType 1Type 2Type 21ISOWEEKNUM
22026-01-042111
32026-01-052222
42027-01-01115353
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Sunday 2026-01-04 starts week 2 under type 1 but is still in week 1 under type 2, where the week runs to Sunday. Types 21 and ISOWEEKNUM always agree.

Start date of a week

Reports grouped by week usually show the week's first day rather than its number. Subtract the weekday from the date: WEEKDAY(A2,3) counts Monday as 0, so =A2-WEEKDAY(A2,3) is the Monday on or before A2. For weeks starting on Sunday, =A2-WEEKDAY(A2)+1.

Monday and Sunday of each week
B2
ABCD
1DateWeek starts (Monday)Week starts (Sunday)Week ends (Sunday)
22026-03-042026-03-022026-03-012026-03-08
32026-03-082026-03-022026-03-082026-03-08
42026-03-092026-03-092026-03-082026-03-15
52027-01-012026-12-282026-12-272027-01-03
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Wednesday 2026-03-04 is in the week of Monday 2026-03-02, which ends on Sunday 2026-03-08. A Monday maps to itself. The formula is a date, so the result needs a date format; without one it shows a number such as 46083. WEEKDAY explains the return types.

Convert a week number to a date

Going the other way, from "week 12 of 2026" to a date, uses the rule that January 4 is always in ISO week 1. Find the Monday of that week, then add 7 days for each week after the first.

Monday of an ISO week
C2
ABC
1YearWeekMonday
22026122026-03-16
3202612025-12-29
4202712027-01-04
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Week 12 of 2026 starts on 2026-03-16, week 1 of 2026 on 2025-12-29, and week 1 of 2027 on 2027-01-04. The first ISO week of a year can start in December, which is why the year in the label and the year of the date do not always match.

Practice: week numbers

Your turn: ISO week
B2
AB
1DateISO week
22026-05-24
32023-03-15
42026-11-08
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Your turn: In B2, return the ISO week number of the date in A2, then fill it down to B4.

Your turn: start of the week
B2
AB
1DateMonday
22026-05-22
32026-05-24
42026-05-25
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Your turn: In B2, return the Monday of the week that contains the date in A2, then fill it down to B4. Weeks run Monday to Sunday.

Common mistake: week 53 in January

Grouping by YEAR(A2) and ISOWEEKNUM(A2) puts January 1, 2027 into "2027, week 53", a week that does not exist. The ISO week belongs to the year of its Thursday, so take the year from the Thursday of the same week: YEAR(A2-WEEKDAY(A2,2)+4).

Year and week label
C2
ABC
1DateWrong labelRight label
22026-12-312026-W532026-W53
32027-01-012027-W532026-W53
42027-01-032027-W532026-W53
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

For January 1, 2027 the wrong label reads 2027-W53 and the right one 2026-W53, the same week as December 31. The opposite happens at the other end of a year: Monday 2025-12-29 is in ISO week 1 of 2026, and the right label reads 2026-W01. The TEXT(...,"00") keeps week numbers two digits wide, so the labels sort in order.

Frequently Asked Questions

How do I get the week number from a date in Excel?

=WEEKNUM(A2) returns the week number with weeks starting on Sunday and week 1 being the week of January 1. For the ISO week number used in most of Europe, use =ISOWEEKNUM(A2) or =WEEKNUM(A2,21).

What is the difference between WEEKNUM and ISOWEEKNUM?

WEEKNUM starts week 1 on January 1, so the first and last weeks of a year can be short. ISOWEEKNUM follows ISO 8601: weeks run Monday to Sunday and week 1 is the week with the year's first Thursday, so January 1 can belong to week 52 or 53 of the year before.

How do I get the Monday of the week in Excel?

=A2-WEEKDAY(A2,3) returns the Monday on or before the date in A2. WEEKDAY with type 3 counts Monday as 0, so a Monday stays where it is. Format the result as a date.

How do I convert a week number to a date in Excel?

For ISO weeks, the Monday of week N of year Y is =DATE(Y,1,4)-WEEKDAY(DATE(Y,1,4),3)+(N-1)*7. January 4 is always in ISO week 1, so the formula steps back to that week's Monday and then forward N-1 weeks.

Why does Excel show week 53?

With WEEKNUM, December 31 is always in week 53, because week 1 is the partial week of January 1 (week 54 in a leap year that starts on a Saturday, such as 2028). With ISOWEEKNUM, a year has 53 weeks when it starts or ends on a Thursday, as 2026 does.

Coddy programming languages illustration

Learn to code with Coddy

GET STARTED