WEEKNUM Function

Excel Functions › Date & Time

All versions Date & Time

The Excel WEEKNUM function returns the week number of the year — handy for weekly reporting and grouping — using the simple “week containing January 1 is week 1” system.


Quick answer: which week of the year?
=WEEKNUM(A2, 2) // Monday-start weeks

Syntax

=WEEKNUM(serial_number, [return_type])
ArgumentDescription
serial_numberRequiredThe date.
return_typeOptionalWeek start: 1 = week with Jan 1 is week 1, Sunday start (default); 2 = Monday start; 21 = ISO week.

How to use it

WEEKNUM uses the US convention: week 1 is whatever week contains January 1. For the international standard (weeks start Monday, week 1 contains the first Thursday), use ISOWEEKNUM instead — the two disagree near New Year.

Try it: interactive demo

Live demo

Adjust the input and watch the formula and result update.

Result:

Tips & gotchas

Week number of the year (US convention) for weekly reporting and grouping. Format result cells as Date or Time so they don’t display raw serial numbers.

Practice workbook

📊
Download the free WEEKNUM practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

WEEKNUM vs ISOWEEKNUM?
WEEKNUM uses “week containing Jan 1 = week 1”; ISOWEEKNUM uses the ISO-8601 standard (Monday start, first Thursday). They differ around year boundaries.
How do I make weeks start Monday?
Set return_type to 2 (or use 21 for full ISO numbering).
Why does early January show week 52 or 53?
That’s ISO behavior — if you’re seeing it with WEEKNUM you used return_type 21. Use 1 or 2 for the simple system.
Can I group a PivotTable by week?
Yes — add a helper column with WEEKNUM (or ISOWEEKNUM) and group on it.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: DATE · TODAY · DATEDIF · EOMONTH · TEXT