If you want to try a UDF
1/. Press alt+f11 to open the VBA Editor
2/. In the editor ..... Insert>Module
3/. Paste all the code in the new module
4/. Close and return to Excel
5/. In any cell
The order is Year (eg 2010), Month (1 to 12), Day (1 to 7 , Sun = 1), Reqd rank (1 to 5)
there is no 4/5th occurence #ERROR# will be displayed.
Omitting the last option will return the first day required
Omitting the last 2 No. options will return the first Monday of the month
Returns the first Monday in January
Format the cell to suit your date style as normal
Bookmarks