P
Per Bergland
I just discovered that week numbering, Nordic style, for 2004 doesn't
work in my Excel X 10.1.4 (on Panther).
Try this in your VBA code:
x = Format(#1/1/2004#, "ww", vbMonday, vbFirstFourDays)
and notice that in Mac Office X it returns "53" instead of the correct
answer "1" (the week containing jan 1, 2004 is the first week in 2004
that contains 4 days when the week starts on a monday - the function
probably assumes that the week starts on a Sunday).
Can anyone shed some light on this or come up with an alternate way of
getting the week number from a date without installing "analysis
toolpak" (I wonder if that addin works...)?
work in my Excel X 10.1.4 (on Panther).
Try this in your VBA code:
x = Format(#1/1/2004#, "ww", vbMonday, vbFirstFourDays)
and notice that in Mac Office X it returns "53" instead of the correct
answer "1" (the week containing jan 1, 2004 is the first week in 2004
that contains 4 days when the week starts on a monday - the function
probably assumes that the week starts on a Sunday).
Can anyone shed some light on this or come up with an alternate way of
getting the week number from a date without installing "analysis
toolpak" (I wonder if that addin works...)?