ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   2nd Thursday of the month (https://www.excelbanter.com/excel-programming/362380-2nd-thursday-month.html)

Patrick Simonds

2nd Thursday of the month
 
I need a formula which:

if cell A1= the month (say 9 for September) and A2 = the year (say 2006)

it will return the date of the 2nd Thursday of the month.



Norman Jones

2nd Thursday of the month
 
Hi Patrick,

Applying Chip Pearson's generic formula

( http://www.cpearson.com/excel/DateTimeWS.htm )

to your scenario, try:

=DATE(A2,A1,1+((2-(5=WEEKDAY(DATE(A2,A1,1))))*7)+(5-WEEKDAY(DATE(A2,A1,1))))


---
Regards,
Norman



"Patrick Simonds" wrote in message
...
I need a formula which:

if cell A1= the month (say 9 for September) and A2 = the year (say 2006)

it will return the date of the 2nd Thursday of the month.





All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com