Hi All,
Would anyone know how to create a custom function that determines the week number of a date?
Thanks and Best Regards
DW
Hi All,
Would anyone know how to create a custom function that determines the week number of a date?
Thanks and Best Regards
DW
Hi the_sleeper
Excel has a function for this, WEEKNUM
Returns a number that indicates where the week falls numerically within a year.
If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.
How?
On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click OK.
If necessary, follow the instructions in the setup program.
Syntax
WEEKNUM(serial_num,return_type)
Serial_num is a date within the week. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
Return_type is a number that determines on which day the week begins. The default is 1.
Thanks Dave for your promplt reply and this fantastic board
Regards
DW
Don’t have an account yet? Register yourself now and be a part of our community!