0
I've used the following formula to get the nth xday of the month:
=DATE(B2,A2,1+7*n)-WEEKDAY(DATE(B2,A2,8-xday))
where year is in B2 and month (as a number from 1 to 12) is in A2, and where xday
is a number representing the day of the week (1 = Sun through to 7 = Sat), so for 1st Saturday that becomes:
=DATE(B2,A2,1+7*1)-WEEKDAY(DATE(B2,A2,8-7))
Now, this works for months with 4 weeks. How can I modify this formula to calculate when a month has 5 weeks?
Thanks Scott. I can't chance the overflow into the next month. but thanks for answering :-) – Leila – 2012-10-11T20:12:16.183
I think Scott's solution does the same as mine. If there's no 5th Monday or whatever then you get "Non-existent date"..... – barry houdini – 2012-10-11T20:29:57.400
@Leila: “I can’t chance the overflow into the next month, but thanks for answering. :-)” What do you mean? – Scott – 2012-10-13T00:02:06.067