Date & time

WEEKNUM function

Week number of a date in its year. WEEKNUM works in Sheets with the usual arguments and results, on cells and on live data from the tools you connect.

Syntax

=WEEKNUM(serial_number, [return_type])
ArgumentUse
serial_numberrequired
return_typeoptional

On live data

In Sheets, WEEKNUM sits next to live data from a connected tool: =data.orders.sum(total) totals a table, =list.orders(customer) spills a column's distinct values, and a linked table column such as table.orders[Total] is a range any function accepts.

See the integrations

More date & time functions

All 25 date & time functions →

Spreadsheet formulas on live business data

Sheets evaluates 491 spreadsheet functions, on cells and on data read live from your tools.