|  

» Calculating the Date of the Nth Specific Day of the Month

Problem:

Calculating the date of, for example, the first Saturday of each of the months listed in column A, for the year specified in cell B2.

Solution:

Use the WEEKDAY and DATE functions as shown in the following formula:
=DATE($B$2,A2,1+((1-(6>=WEEKDAY(DATE($B$2,A2,1),2)))*7+(6-WEEKDAY(DATE($B$2,A2,1),2))))


Rate This Tip
12 34 5
Rating: 3.44     Views: 13242
Thanks
Tim
Great formula - thanks very much. Does in a few characters what I had been trying to do over pages.
How do I take account of the nth day. ie which part of the formula changes with say the third Friday? Also any ideas o how to drag out the last day of a month?
Click here to post comment
For Registered Users
Name
Comment Title
Comments