WEEKNUM
Description
Returns an integer from 1 to 53 representing the week number of the specified date.
Syntax
WEEKNUM(
serial_date
, [
return_type
])
- serial_date: The serial number representing the date.
- return_type: The code specifying the week numbering system to use and the first day of the week. In week numbering system 1, the week of January 1st is Week 1; in week numbering system 2, the week containing the first Thursday of the year is Week 1.return_typeDescription1Numbering system 1 and the week runs from Sunday to Saturday.2Numbering system 1 and the week runs from Monday to Sunday.11Numbering system 1 and the week runs from Monday to Sunday.12Numbering system 1 and the week runs from Tuesday to Monday.13Numbering system 1 and the week runs from Wednesday to Tuesday.14Numbering system 1 and the week runs from Thursday to Wednesday.15Numbering system 1 and the week runs from Friday to Thursday.16Numbering system 1 and the week runs from Saturday to Friday.17Numbering system 1 and the week runs from Sunday to Monday.21Numbering system 2 and the week runs from Monday to Sunday.
Example
Formula | Result |
|---|---|
=WEEKNUM("10/4/2016 5:37 PM") | 41 |
=WEEKNUM("10/4/2016",21) | 40 |