Syntax
| Parameter | Description |
|---|---|
| serial_number | Parameter of the WEEKNUM function. |
| [return_type] | (Optional.) Parameter of the WEEKNUM function. |
Examples
Week number (Sunday start)
=WEEKNUM("2026-04-09")
Week number (Monday start)
=WEEKNUM("2026-04-09", 2)
Group by week
="Week " & WEEKNUM(A1, 2) & " - " & YEAR(A1)
Common Errors
Occurs when the date is not valid or return_type is not a recognized option.
Occurs for date serial numbers outside the valid range.
Tips
WEEKNUM uses a US convention where week 1 always contains Jan 1. For ISO 8601 week numbering (used in Europe), use ISOWEEKNUM instead.
1 (default) = Sunday start, 2 = Monday start. Types 11-17 allow any day as week start. Most business reporting uses type 2 (Monday start).
Dec 31 is always in week 52 or 53 of the current year with WEEKNUM. ISO week numbering may place it in week 1 of the next year.
Try WEEKNUM in Viztab
Import your data and use WEEKNUM with 370+ other formulas. No signup required.
Open Viztab