Dates function
ISOWEEKNUM function in Google Sheets and Excel
ISOWEEKNUM returns the ISO 8601 week number of a date: weeks start on Monday and week 1 holds the year's first Thursday.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
ISOWEEKNUM(date)Arguments in [brackets] are optional. Google Sheets writes it ISOWEEKNUM(date).
Example
=ISOWEEKNUM(D2) reads: Return the ISO week number of the due date in D2.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Task | Owner | Start | Due | Hours | Due week | Holidays | |
| 2 | Kickoff workshop | Mara | 2 Mar 2026 | 4 Mar 2026 | 6 | 10 | 3 Apr 2026 | |
| 3 | Content audit | Jonas | 5 Mar 2026 | 20 Mar 2026 | 24 | 6 Apr 2026 | ||
| 4 | Wireframes | Priya | 16 Mar 2026 | 2 Apr 2026 | 40 | 1 May 2026 | ||
| 5 | Visual design | Elif | 30 Mar 2026 | 17 Apr 2026 | 56 | |||
| 6 | Copywriting | Tomás | 1 Apr 2026 | 24 Apr 2026 | 32 | |||
| 7 | Build | Kenji | 13 Apr 2026 | 15 May 2026 | 120 | |||
| 8 | Testing | Sofia | 11 May 2026 | 22 May 2026 | 30 | |||
| 9 | Launch | Leo | 26 May 2026 | 27 May 2026 | 8 |
F2 shows 10: 4 March 2026 falls in ISO week 10.
How the spreadsheet calculates it
The ISO week number of a date. Here it's given D2.
- 1. ISOWEEKNUM: The ISO week number of a date. Here it's given
D2.date=`D2`: the date to number
More ISOWEEKNUM examples
=ISOWEEKNUM(D2)The due date's ISO week: 10 for 4 March 2026.=ISOWEEKNUM(DATE(2027,1,1))53: New Year's Day 2027 is still in the last ISO week of 2026.="W"&TEXT(ISOWEEKNUM(D2),"00")A two-digit week label like W10.=SUMPRODUCT((ISOWEEKNUM(D2:D9)=10)*E2:E9)The hours of tasks due in ISO week 10.
Paste any of these into the formula explainer to see it step by step.
Tips
- Use it in a helper column, then group or total by that column.
- Check the first and last days of the year in your data: that's where ISO weeks surprise people.
- Format the result as a number, not a date.
What ISOWEEKNUM is used for
Weekly sales and production reports, shift and sprint planning by week number, and matching dates to the week numbers used in European business calendars.
Arguments
| Argument | Required | What it is |
|---|---|---|
| date | Yes | The date to number.Watch out: Text the app can't read as a date gives #VALUE!. |
Common mistakes
Mixing WEEKNUM and ISOWEEKNUM in one report: around New Year they disagree.
Expecting week 1 to start on 1 January: under ISO rules, 1 January 2027 is in week 53 of 2026.
Labelling weeks with the calendar year: around New Year a date can belong to the previous or next ISO year, so a label like 2026-W53 needs care in the first days of January.
In Google Sheets
Google Sheets has ISOWEEKNUM with the same single argument, and both apps follow the ISO 8601 rule, so week numbers match between them.
Errors you may see with ISOWEEKNUM
Questions
What's the difference between WEEKNUM and ISOWEEKNUM?
WEEKNUM starts week 1 on 1 January; ISOWEEKNUM starts week 1 on the Monday of the week with the year's first Thursday. They agree most of the year and disagree around New Year: for 1 January 2027, ISOWEEKNUM gives 53 and WEEKNUM(date,2) gives 1.
Which week number should I use?
ISO weeks if your company or country reports in them (common in Europe); WEEKNUM if your calendar simply starts counting on 1 January. Pick one per report.
How do I sum by week number?
Add a helper column with ISOWEEKNUM(D2) and use SUMIFS on it, or compare inside SUMPRODUCT: SUMPRODUCT((ISOWEEKNUM(D2:D9)=10)*E2:E9).
Sources
Official documentation the facts on this page were checked against.