My idea would be something like that:
(weeknumber-1)*7 + Weekday -> Mon = 1, Tue = 2....
Check the Day of Year [0..365 or 366] and compare to an offset for Jan / Feb / March... depending on whether year has a 29th of Feb - which can be calculated using the year.
Now all you have to do is convert that to code.
EDIT:
After I read that page you reffered to, I assume you have trouble understanding Excels Date Syntax
http://office.microsoft.com/en-us/excel-help/date-function-HP010062283.aspx
So lets break that code down:
What happens here?
=CHOOSE(MONTH(DATE(A2,1,B2*7-2)-WEEKDAY(DATE(B2,1,3))),"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
So lets pick that first DATE Statement:
Date (as stated in Microsoft's Doc) works as follows: If your month has more than 30/31 days the leftover days get dragged into the next month. So as A1 is the year (yyyy/mm/dd) B2 is the day times 7 == the weeknumber minus some offset BECAUSE the first week shall not be counted (like it is week 1 day 3 but the formula would make it day 10 otherwise)
** https://support.office.com/en-US/Article/WEEKDAY-function-a9784177-5c31-4deb-bc9e-d4ab914983ca?ui=en-US&rs=en-US&ad=US
** same with Month
https://support.office.com/en-US/Article/MONTH-function-EEDAC31A-E28C-46FB-B81F-CADB4BC03751?ui=en-US&rs=en-US&ad=US
So what is it with the monthnames?
Well, this is just a sinmple enumeration and the CHOOSE function in the very beginning will convert a number between 0...x into the value at the corresponding place in the enum, which is why the months have to be in order.