On 5 Jul 2024 as I do recall,
John Harrison wrote:
> What I would really like to do is to enter the year in the master cell
> (rather than the date of the last Thursday in the preceding year). But
> that would require a function that could input a week number, whereas
> there only seem to be functions that output week number.
>
Cribbed from an Excel forum:
date(YYY,MMM,1+7*NNN)-weekday(date(YYY,MMM,8-5)) will give the
Nth Thursday in the month MMM of the year YYY.
https://www.excelfox.com/forum/showthread.php/398-Nth-Such-And-Such-Day-Of-The-Month
So if the year is specified in cell b1, then
date(b1,1,1+7*1)-weekday(date(b1,1,8-5))
Tested and appears to give the right results here:
Year 2024
Month 1 4th Jan 2024 Thursday
2 1st Feb 2024 Thursday
3 7th Mar 2024 Thursday
4 4th Apr 2024 Thursday
5 2nd May 2024 Thursday
6 6th Jun 2024 Thursday
7 4th Jul 2024 Thursday
8 1st Aug 2024 Thursday
9 5th Sep 2024 Thursday
10 3rd Oct 2024 Thursday
11 7th Nov 2024 Thursday
12 5th Dec 2024 Thursday
--
Harriet Bazley == Loyaulte me lie ==
Anything can happen in the next half-hour....