Excel WEEKNUM function

Returns the week number of the year for a date. In Spanish Excel it is called NUM.DE.SEMANA.

Syntax

English Excel

=WEEKNUM(serial_number, [return_type])

Spanish Excel (Mexico)

=NUM.DE.SEMANA(núm_de_serie, [tipo])

Spanish Excel (Spain, Latin America)

=NUM.DE.SEMANA(núm_de_serie; [tipo])

ArgumentWhat it is
serial_numberThe date.
return_typeoptional1: weeks from Sunday; 2: from Monday; 21: ISO week.

Example

WEEKNUM(date, 2) gives the week of the year with weeks starting on Monday. Handy for grouping sales or shifts by week. With 21 it uses the ISO week, common in Europe.

=WEEKNUM(A2,2)

Common mistake

Systems number weeks differently: 21 gives the ISO week many calendars in Europe use.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice WEEKNUM

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

WEEKNUM

WEEKNUM(date, 2) gives the week of the year with weeks starting on Monday. Handy for grouping sales or shifts by week. With 21 it uses the ISO week, common in Europe.

Example=WEEKNUM(A2,2)NUM.DE.SEMANA = WEEKNUM

In B2, calculate each date’s week number, with weeks starting on Monday.

B2
ABC
1DateWeek
201/01/2026
301/04/2026
401/05/2026
503/16/2026
611/30/2026
7

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is WEEKNUM called in Spanish?
In Spanish Excel it is NUM.DE.SEMANA. The formula =WEEKNUM(A2,2) is written =NUM.DE.SEMANA(A2;2) (or with commas in Mexico).
Why does WEEKNUM use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common WEEKNUM mistake?
Systems number weeks differently: 21 gives the ISO week many calendars in Europe use.