Excel Example: Find Days Of A Month

Share this video:

About the video

To get the nth day of week in a month (i.e. the first Tuesday, third Tuesday, fourth Thursday, etc.) you can use a formula based on the DAY and WEEKDAY functions. First, this formula determines a "start date". The "first of month" is calculated with the DAY function. Then n * 7 days is added the first of the month, to get a start date n weeks from the first of the month. In the generic form of the formula, n represents "nth". The next step is to calculate the adjustment required to reach the final result. The adjustment is calculated using WEEKDAY and DAY. To get the first day of the month for a given date, you can use a simple formula based on the DAY function. Here we have used two methods to get the very first date on a month. First one is with DATE function and another one is with DAY function. Inside WEEKDAY, the first of the month is again calculated, then 7 days are added and the value for day of week is subtracted. This is a number between 1 (Sunday) and 7 (Saturday) which can be changed as needed. Finally the calculated adjustment is subtracted from original start date to get the final result.

Share this video: