Summary

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. In the example shown, the formula in E5 is:

=B5-DAY(B5)+1+D5*7-WEEKDAY(B5-DAY(B5)+8-C5)

Generic formula

=date-DAY(date)+1+n*7-WEEKDAY(date-DAY(date)+8-dow)

Explanation 

First, this formula determines a "start date". The "first of month" is calculated with the DAY function here:

=B5-DAY(B5)+1

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:

WEEKDAY(B5-DAY(B5)+8-C5)

Inside WEEKDAY, the first of the month is again calculated, then 8 days are added and the value for dow (day of week) is subtracted. Day of week is abbreviated "dow" in the generic form of the formula. 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.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.