WEEKNUM function

Category: Date and time
Introduced: Excel 2003

Summary

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

Syntax

WEEKNUM(serial_number,[return_type]) The WEEKNUM function syntax has the following arguments:
• Serial_number Required. A date within the week. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
• Return_type Optional. A number that determines on which day the week begins. The default is 1.
1 or omitted | Sunday | 1
2 | Monday | 1
11 | Monday | 1
12 | Tuesday | 1
13 | Wednesday | 1
14 | Thursday | 1
15 | Friday | 1
16 | Saturday | 1
17 | Sunday | 1
21 | Monday | 2

Example

=WEEKNUM(A2)
=WEEKNUM(A2,2)

Microsoft Support Page

https://support.microsoft.com/en-us/office/weeknum-function-e5c43a03-b4ab-426c-b411-b18c13c75340

Back to Functions