[g]WEEKNUM[/g]([i]serial_num,return_type[/i])
Serial_num is a date within the week.
Return_type is a number that determines on what day the week begins. The default is 1.
Serial num Week Begins
1 Week begins on Sunday. Weekdays are numbered 1 through 7.
2 Week begins on Monday. Weekdays are numbered 1 through 7.
Examples
If date is Sunday, January 9, 1994, then:
WEEKNUM("1/9/94", 1) equals 3
WEEKNUM("1/9/94", 2) equals 2 |