Hi David!
Now we have the system we can start to answer the question.
I gather that with a given week number of a given year you want the
Friday of that week.
For this a User Defined Function by John Green is very helpful:
Function ISOYEARSTART(WhichYear As Integer) As Date
Dim WeekDay As Integer
Dim NewYear As Date
NewYear = DateSerial(WhichYear, 1, 1)
WeekDay = (NewYear - 2) Mod 7
If WeekDay < 4 Then
ISOYEARSTART = NewYear - WeekDay
Else
ISOYEARSTART = NewYear - WeekDay + 7
End If
End Function 'ISOYEARSTART
With this:
A1: 2004
B1: 25
C1:
=ISOYEARSTART(A1)+(B1-1)*7-1+5
Returns: Fri, 18-Jun-2004
D1; [Check using an ISOWEEKNUM UDF]
=ISOWEEKNUM(C1)
Returns: 25
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
[email protected]
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.