WEEKNUM Function in Excel

If you just need to weeknum function in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use =WEEKNUM(date, 21) or =ISOWEEKNUM(date) for the ISO week number — return_type 21 gives the ISO week, while the plain default (1) starts weeks on Sunday and counts the week containing January 1 as week 1, a US convention that disagrees with European reporting.

On this page8

Syntax

=WEEKNUM(serial_number, [return_type])

Arguments

Argumentrequired / optionalDescription
serial_numberrequiredThe date whose week number you want.
return_typeoptionalWhich day starts the week. 1 or omitted is Sunday, 2 is Monday, 21 is ISO.

Related functions

WEEKDAYDATEEOMONTH
ƒxWeek Number & QuarterLive
ISO week
25

2026-W25 · WEEKNUM (Sunday start): 25

Quarter
Q2

Day of year: 166

=ISOWEEKNUM(A2) · =WEEKNUM(A2) · =ROUNDUP(MONTH(A2)/3,0)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

WEEKNUM returns which week of the year a date falls in, and the answer depends entirely on the convention. Its default counts 1 January as being in week 1 and starts weeks on Sunday, which is the US system. European and most business reporting uses ISO 8601, where weeks start on Monday and week 1 is the one containing the first Thursday — which sometimes puts early January in week 52 of the previous year. Passing 21 as the return type gives ISO, and ISOWEEKNUM does the same with no argument to forget. Mixing the two across a report is a genuine and hard-to-spot reconciliation bug. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “weeknum function in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

ISO week number for European reporting: =ISOWEEKNUM(A2), or equivalently =WEEKNUM(A2, 21). The difference in action: for 1 January 2027 the US default returns week 1 while ISO returns week 53 of 2026. Grouping a sales table by ISO week: put =ISOWEEKNUM(A2) in a helper column and pivot on it. Week numbers are the classic silent reconciliation bug, because two systems can both be right and still disagree. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. The short version of “weeknum function in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Using the default return type in a European report, which produces week numbers off by one against every other system.
  • Assuming early January is always week 1; under ISO it can be week 52 or 53 of the previous year.
  • Mixing conventions across sheets in the same workbook, which is nearly impossible to spot in a reconciliation.

Frequently asked questions

How do I get the ISO week number?

=ISOWEEKNUM(A2), or =WEEKNUM(A2, 21). Both start weeks on Monday and put week 1 where the first Thursday falls.

Why does my week number differ from another system?

Almost certainly a convention mismatch. The default is US; most business reporting uses ISO.

Can a January date be in week 52?

Yes, under ISO. If the year starts late in the week, those days belong to the previous year's final week.