When working with dates, there is often the need to group by week. In order to establish the week number from the date, the Weeknum function is the most suitable option.
Syntax
= Weeknum(serial_number,[return_type]) where serial_number is the date and return_type is an integer value to indicate the first day of the week. Where the second argument is blank the function defaults to 1, i.e. starting on a Sunday.
This screenshot demonstrates the different options for the second argument.
Here is a visual demonstration of the effect of the second argument changing through the available options.

Comments
Post a Comment