Hi Gilbert!
Analysis ToolPak ships with all Versions of Excel.
Just use:
Tools > Addins
Select Analysis ToolPak
OK
If you haven't used Analysis ToolPak before, you'll need the
installation CDROMs. If (for pre Excel XP versions) you don't see
Analysis ToolPak listed in the Addins dialog, you will need to insert
the CDROM and select the dialog appropriate to changing your
installation.
With Analysis ToolPak loaded, the Analysis ToolPak functions and all
dependent cells will return #NAME!
The four common Week numbering systems are below. Analysis ToolPak is
only needed for methods 2 and 3 and (pushed) it should be possible to
design more complex formulas that don't need the Analysis ToolPak
functions.
1. Week 1 starts 1-Jan and Week 2 starts on 8-Jan
Here, we use the formula:
=TRUNC(((A1-DATE(YEAR(A1),1,0))+6)/7)
2. Week 1 starts 1-Jan and week 2 starts on the following Sunday
Here we use the Analysis ToolPak WEEKNUM function with second argument
of 1.
=WEEKNUM(A1,1)
3. Week 1 starts 1-Jan and week 2 starts on the following Monday
Here we use the Analysis ToolPak WEEKNUM function with second argument
of 2.
=WEEKNUM(A1,2)
4. The ISO 8601: 2000 Method. Week 1 starts on the Monday of the week
with the first Thursday of the calendar year. Week 2 starts the
following Monday. Here we use the formula:
=1+INT((A9-DATE(YEAR(A9+4-WEEKDAY(A9+6)),1,5)+WEEKDAY(DATE(YEAR(A9+4-W
EEKDAY(A9+6)),1,3)))/7)
The advantage of the ISO system is that all weeks, for all time have 7
days. With other methods you get odd weeks at the start and / or end
of the year. a disadvantage is that week 1 can start in late December
and week 53 can extend into January.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.