1. Home
  2. Functions
  3. Date and time
  4. WEEKNUM

WEEKNUM function

Returns the week number of a date in its year (the week containing January 1 is week 1).

Syntax

=WEEKNUM(serial_number, [return_type])

Arguments

ArgumentRequiredDescription
serial_numberRequiredThe date
return_typeOptionalThe day weeks start on: 1 Sunday, 2 Monday, 11 to 17 Monday to Sunday, 21 ISO weeks

How to use WEEKNUM

WEEKNUM takes 1 required argument and 1 optional argument. Type =WEEKNUM( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=WEEKNUM(DATE(2012,3,9))Result 10
=WEEKNUM(DATE(2012,3,9), 2)Result 11

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.