# WEEKNUM in Google Sheets: syntax and examples

URL: https://goingstellar.ro/reference/sheets/weeknum/

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

- `date` (date, required: yes): The date to number. A serial number or a DATE result.
- `type` (number, required: 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 2026-11-29.

```
=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 2026-11-29.

```
=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 2026-11-29.

```
=WEEKNUM(A2)
```

Result: `49`

A date kept as a serial number in a cell. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=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 2026-11-29.

## 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.

## Related functions

- [WEEKDAY](https://goingstellar.ro/reference/sheets/weekday/)
- [DAY](https://goingstellar.ro/reference/sheets/day/)
- [MONTH](https://goingstellar.ro/reference/sheets/month/)
- [DATE](https://goingstellar.ro/reference/sheets/date/)
- [EOMONTH](https://goingstellar.ro/reference/sheets/eomonth/)

## Sources

- [WEEKNUM (Docs Editors Help)](https://support.google.com/docs/answer/3294949)

