# WEEKNUM Function

The WEEKNUM function is one of the date and time functions. It used to return the number of the week the specified date falls within the year.

The WEEKNUM function syntax is:

WEEKNUM(serial-value [,weekday-start-flag])

where

serial-value is a number representing the date within the week, entered using the Date function or other date and time function.

weekday-start-flag is a numeric value used to determine the type of the value to be returned. It can be one of the following:

Numeric value | Weekday Sequence
1 or omitted | from Sunday to Saturday
2 | from Monday to Sunday

To apply the WEEKNUM function,

1. select the cell where you wish to display the result,
2. click the Insert Function icon situated at the top toolbar,
   or right-click within a selected cell and select the Insert Function option from the menu,
   or click the icon situated at the formula bar,
3. select the Date and time function group from the list,
4. click the WEEKNUM function,
5. enter the required arguments separating them by commas,
6. press the Enter button.

The result will be displayed in the selected cell.