Fourth friday in each month

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If you have any date in A1 this formula in A2 will find the 4th Friday in that month

=A1-DAY(A1)+29-WEEKDAY(A1-DAY(A1)+2)

If you then want a list of subsequent 4th Fridays you can use this formula in A3 copied down

=A2+28+(DAY(A2+28)<22)*7

format all cells in required date format
 
Upvote 0
Thanks Barry that works great!

I don't quite understand how the formula works and would like to do this for other occasions such as the third tuesday. Could you show me how to do this so I can understand what needs to be changed to get a required day?

Thanks so much! :)
 
Upvote 0
Here's a generic version of the first formula

=A1-DAY(A1)+1+n*7-WEEKDAY(A1-DAY(A1)+8-xday)

where n would be the instance number and xday the day (1=Sun through to 7=Sat) so 3rd Tuesday would be

=A1-DAY(A1)+1+3*7-WEEKDAY(A1-DAY(A1)+8-3)

Then the second formula can be amended based on the instance number only, generic version is

=A2+35-(ABS(DAY(A2+35)-n*7+3)>3)*7

n should be 1 to 4 only (if you use 5 then the first formula will give 5th instance if the month if there is one, but 1st instance of the next month if there isn't - 2nd formula won't work)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top