Google Sheets function · Date
WEEKNUM in Google Sheets: syntax and examples
WEEKNUM turns a date into the week number of its year. The optional type decides which day starts the week and how week 1 is defined, so the same date can give different numbers.
Syntax
WEEKNUM(date, [type])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
date | date | yes | The date to number. A serial number or a DATE result. |
type | number | no | How weeks are counted. 1 (default): Sunday start. 2: Monday start. 21: ISO 8601. |
Examples
The examples use this table, starting in A1:
| Date serial |
| 46355 |
| 46023 |
=WEEKNUM(DATE(2026,11,29))Result: 49
Default type 1: weeks start on Sunday, week 1 contains January 1.
Run in a Google Sheet (English US locale) on .
=WEEKNUM(DATE(2026,11,29), 2)Result: 48
Type 2: weeks start on Monday, so a Sunday still belongs to the week before.
Run in a Google Sheet (English US locale) on .
=WEEKNUM(DATE(2026,11,29), 21)Result: 48
Type 21: ISO week number, the one used in most of Europe.
Run in a Google Sheet (English US locale) on .
=WEEKNUM(A2)Result: 49
A date kept as a serial number in a cell.
Run in a Google Sheet (English US locale) on .
=ARRAYFORMULA(WEEKNUM(A2:A3, 21))Result:
| 48 |
| 1 |
Week numbers for a whole column of dates.
Run in a Google Sheet (English US locale) on .
Common errors
- The default type is 1, with weeks starting on Sunday. For European ISO weeks use 21: on Sunday 29 November 2026 the default gives 49 and ISO gives 48.
- Around January 1, type 21 can return 53 for a date in the new year: WEEKNUM(DATE(2027,1,1), 21) is 53, while type 1 returns 1.
- A type outside the allowed list, such as 5, returns #NUM!.
- A text that is not a date, such as "abc", returns #VALUE!.
Compared with Excel
Same syntax in Excel.