Get the number of the week of the month from a given date
问题 I have a set of dates from which I must obtain the week of the month. There is a lot of literature on how to obtain the week of the year using VBA code but not the week number of the month. For instance 03-Mar-13 would give week 1 of March, instead I end up with a result of week 10. 回答1: This isn't the most elegant code, but it worked for me. Some assumptions: This is a UDF and can be used on a spreadsheet or in code Weeks start on Sundays Week 1 can be incomplete week ===== Function