# WEEKNUM

## Content

This function returns a number that indicates the week of the year numerically.

## Syntax

`WEEKNUM(date, weektype)`

## Arguments

This function has these arguments:

| Argument | Description | <br> |
| -------- | ----------- | --- |
| *date* | [Required] Date for which you want to determine the number of weeks | <br> |
| *weektype* | [Optional] Type of week determined by on which day the week starts | <br> |
| <br> | Value | Number returned |
| <br> | 1 (assumed if omitted) | Week starts on a Sunday |
| <br> | 2 | Week starts on a Monday |

Specify the date argument as a number (as in 37806.5) a string (as in "7/4/2003 12:00"), or a DateTime object, as in DATE(2003,7,4).

## Examples

`WEEKNUM(A2)`
`WEEKNUM(R2C1,2)`
`WEEKNUM(23,1)` gives the result 4