Skip to main content
← All functions

WEEKNUM function

Converts a serial number to a number representing where the week falls numerically with a year

Syntax

WEEKNUM(serial_number, [return_type])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
serial_numberYesA date within the week."2012-3-9"
return_typeNoA number that determines on which day the week begins. The default is 1.2

Try WEEKNUM

Use Monday-start week numbers with January 1 in week 1

=WEEKNUM(A2,2)

With return type 2, weeks begin on Monday and the week containing January 1 is week 1. This gives 1 for the same date that ISOWEEKNUM assigns to week 53.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

WEEKNUM · top-level call

=WEEKNUM(A2,2)

1 / 2 · serial_number

A date within the week.

WEEKNUM reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.