WEEKNUM Function in Excel: Week Number of the Year

WEEKNUM Function in Excel: Week Number of the Year featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

Date & TimeLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Common errors and fixes
  6. WEEKNUM in practice
  7. Where you will use it
  8. Worked example
  9. Mistakes people make
  10. Related functions
  11. Continue learning

WEEKNUM returns the week of the year. ISOWEEKNUM follows the ISO standard (weeks start Monday, week 1 contains the first Thursday).

Advertisement

Syntax

=WEEKNUM(serial_number, [return_type])
Argument What it means
return_type 1 (default) weeks start Sunday; 2 start Monday; 21 = ISO.

Examples

Example 1

=WEEKNUM(A2, 2)

Monday-based week number for weekly sales reports.

Example 2

=ISOWEEKNUM(A2)

The week number most European/global companies use.

Common errors and fixes

You see Why, and the fix
Numbers differ from a colleague Different return_type. Agree on one (2 or ISO) across the team.

WEEKNUM in practice

Where you will use it

  • Weekly sales reports
  • Week of the year for planning
  • Group dates by week

Worked example

DateFormulaResult
01-Jan-2026=WEEKNUM(A2,2)1
04-Oct-2026=WEEKNUM(A3,2)40
31-Dec-2026=WEEKNUM(A4,2)53

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Week startType 2 starts weeks on Monday
ISO weeksUse ISOWEEKNUM for ISO 8601

WEEKDAY Β· TEXT

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Dates & times22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong