I found a formula for determining the date of Thanksgiving for the current year from and it works great. However, I do not understand the explanation of the ",26,25,24,23,22,28,27".
Can someone explain it to me so I can understand that part of the formula?
My sheet has the year as =TEXT(C5, "yyyy") in D5.
Appreciate any help.
How does this formula work?
It is fetching the fourth Thursday of November by finding out what day of week November first is and then adding sufficient number of days to it. For eg. November First, 2009 is a Sunday, so thanksgiving day will be on 26th.
Can someone explain it to me so I can understand that part of the formula?
My sheet has the year as =TEXT(C5, "yyyy") in D5.
Code:
=DATE(D5,11,CHOOSE(WEEKDAY(DATE(D5,11,1)),26,25,24,23,22,28,27))
Appreciate any help.