Close this search box.

Homework – When does Thanksgiving Day occur on same date again?



It is Thanksgiving day weekend for our friends & readers in USA. That means a good portion of our readers are relaxing with their family and having a good meal. Naturally, we celebrated thanksgiving at our home (we pretty much celebrate any festival as long as eating good food is one of its rituals). I am too tempted to leave the blog un-updated until Tuesday next week, but then I remembered about remaining good portion of our readers, that is you.

So, here is a simple quiz for you.

Find in which year thanksgiving day occurs on the same date again
using Excel Formulas, of course.

See this short demo to understand what I have in mind:

When does thanksgivign day occur on same date again?

Thanksgiving day is celebrated on 4th Thursday in November, every year. See how to calculate Thanksgiving day using excel formulas.

Go ahead and find a solution, then post it using comments.

Related Awesomeness: Calculating Common Public Holiday Dates in Excel | Perpetual Calendar – Excel Template


Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

29 Responses to “Homework – When does Thanksgiving Day occur on same date again?”

  1. ikkeman says:

    Assume the year is input in B1:
    to find the day that year:

    Assume the day is in B2:
    to find the next year


    returns an array the serial numbers of all the days in november (1 to 30) for the input year.
    The sum formula counts how many thursdays occur in november for that year. I need to find the 4th, so when there's 4that year I want to find the largest, but if there's 5 I need the second largest (Thus -3)
    the large finds the required day of the month.

    The second formula sets up an array of the serial numbers for the day of thanksgiving this year for the next 20 years
    Then, just find (match) thursday (5) in that array and you found the next time it's thanksgiving on that day.

  2. ikkeman says:

    3rd line should read


  3. ikkeman says:

    3rd line should read


  4. Pedro Wave says:

    My solution:
    Input the year in B1 cell and do this:
    Follow this C1 cell until N1.
    Follow this B2 cell until N2.
    Follow this C3 cell until N3.

  5. Michael Pennington says:

    I did it with arrays. I tried to pull it off without helper cells, but I couldn't pull it off. If I were sharing it, I would hide all the arrays, but I think my methodology is sound. Here is the doc:


    The formulae:
    Year Array beginning in Cell A8

    Thanksgiving Array in B8


    Day calculation beginning in Cell C8

    Offset to find the next matching Thanksgiving day

    Then a custom YYYY format. That is all.

    I will be curious to find out how Chandoo pulled it off and if he did it without helpers. Thanks and keep up the great work, Chandoo!

  6. Elias says:

    Thanksgiving date
    Next year Thanksgiving occurs on same day
    Confirm with Ctrl+Shift+Enter

  7. Michael Pennington says:

    That is brilliant, Elias.

  8. Gregory says:

    Assuming B2 holds the Year value, with Excel 2010 you can use the new return_type argument for WEEKDAY to produce the following formula for Thanksgiving Day:


    where the return_type argument of 15 is giving WEEKDAY values of 1 (Friday) through 7 (Thursday).

    But then you realize that shifting the date will give you the solution provided by @Elias, which is also backward compatible.

  9. Pedro Wave says:

    Year in B1 and B2:
    Array formula in B3:
    Confirm with Ctrl+Shift+Enter
    Best regards.

  10. Rick Rothstein (MVP - Excel) says:


    You can shorten your formula by 11 characters by using the MIN function instead of the SMALL function, using ROW(1:12) instead of ROW(A1:A12) and using 9999 instead of 10000 for the false IF condition (I think that is a safe thing to do)...


  11. Rick Rothstein (MVP - Excel) says:

    Now that I have shortened Pedro's formula so much, the following array-entered** formula, at 6 characters more, seems lengthy by comparison (but I am posting it anyway because is shows yet another way to solve this problem)...

    B2: The Year
    B3: =DATE(B2,11,29)-WEEKDAY(DATE(B2,11,3))
    B4: =B2+MIN(99*(DAY(DATE(B2,11,29)-WEEKDAY(DATE(B2,11,3)))DAY(DATE(B2+ROW(1:99),11,29)-WEEKDAY(DATE(B2+ROW(1:99),11,3))))+ROW(1:99))

    **commit formula using CTRL+SHIFT+ENTER, not just Enter by itself

  12. Elias says:

    Pedro and Rick formulas are really nice, but they could return a wrong result if you insert a row before row 1 after the formula is entered. The reason is because ROW(1:12) will change to ROW(2:13) and ROW(1:99) to ROW(2:100).

  13. Rick Rothstein (MVP - Excel) says:

    The "not equal" symbol for my posted formula was removed by this blog's comment processor. Here is my array-entered** formula again with .NE. (notice the surrounding dots) placed where the "not equal" symbol should be (just replace it with a "less than" symbol followed by a "greater than" symbol)...


  14. Rick Rothstein (MVP - Excel) says:


    Row 1 is the header row... no one inserts rows before that.{grin} All kidding aside, that is an excellent point and should definitely be mentioned... so thanks for doing so. I would note, though, that since the minimum date-repeat-time is 5 years, Pedro and my formulas are safe for up to 4 row insertions before they will begin to produce incorrect results. Assuming one needs to protect against insertion before Row 1, here is a fix for my formula which handles the problem (I could not get this same fix to work with Pedro's formula though)...


    **commit formula using CTRL+SHIFT+ENTER, not just Enter by itself

    NOTE: As indicate in my previous message, this blog's comment processor removes "not equal" symbols ("less then" symbol followed by "greater then" symbol), so I used .NE. (notice the surrounding dots) in place of the "not equal" symbol... just replace those characters with a "less then" symbol followed by a "greater then" symbol when trying to copy the formula. I think the quote marks used in my formula will have to be replaced by *real* quote marks after you copy the formula as well.

  15. Chandoo says:

    My formula is similar to Elias and few others above.

    The years is in cell C2
    Thanksgiving date is in C3 =DATE(C2,11, CHOOSE(WEEKDAY(DATE(C2,11,1)), 26,25,24,23,22,28,27))

    Then, I defined a named formula lstYears as =ROW(OFFSET(Sheet2!$A$1,,,30,))+Sheet2!$C$2

    This gives a bunch of 30 year numbers from the value in C2.

    Finally, the array formula to find the next year with same thanksgiving date is,

    =INDEX(lstYears, MATCH(TRUE, DAY(C5)=CHOOSE(WEEKDAY(DATE(lstYears,11,1)), 26,25,24,23,22,28,27) ,0))

    (Make sure you array enter it with CTRL+SHIFT+Enter)

    @Elias, Rick & Pedro: a technique like ROW(OFFSET(Sheet2!$A$1,,,30,)) will overcome the limitation of row(1:99)

  16. Pedro Wave says:

    Thanks to Elias, Rick and Chandoo by your array formulas.
    Only one observation, the following year with the same day occurs 12 years later at worst case. I've used 12 items, why do you use arrays of 30, 99 or 100 items?

    Out of this weekend homework, now here it is my solution without arrays:

    Just Enter by itself.

  17. Pedro Wave says:

    Not equal symbol by this blog’s comment processor.
    My last formula with .NE. (“not equal” symbol should be replaced with a “less than” symbol followed by a “greater than” symbol)

    It runs from 1900 til 9999.

  18. Pedro Wave says:

    My last formula with pre and code HTML tags (between open and close tags)

    It works?

  19. Elias says:

    Unfortunately the issue persists. Look what happened with you result when you insert more than 10 rows on Row 1, or when you delete Row 1.


  20. Rick Rothstein (MVP - Excel) says:


    >> =$B$2+IF(AND(MID($B$2,3,1)="9",
    >> MOD(INT($B$2/100)-19,4).NE.0),
    >> CHOOSE(MID($B$2,4,1)+1,12,5,6,6,6,6,7,12,6,6),
    >> CHOOSE(MOD($B$2,4)+1,6,6,11,5))

    That is it definitely the formula to use! I would consider changing the absolute cell references to relative ones so the formula could be copied down or across though. In any event, you demonstrated some excellent pattern recognition skills there Pedro... well done!!!

  21. Drazen says:

    Just for the first part of the task, how about finding the date of first Thursday in November for the particular year and then add 21 day to get the date of the 4th Thursday?
    Year is entered in A1 and there is a Defined Name "FirstNovember" =DATE(Sheet1!$A$1;11;1) just to be more clear. In my formula Thursday is 4th day in a week (parameter 2 as a second argument in WEEKDAY function).
    Formula is:

  22. Elias says:

    I agree with Rick, that's a great formula.


  23. ikkeman says:

    @ Pedro Wave
    ... http://en.wikipedia.org/wiki/Century_leap_year

    Your assumption of a leapyear if divisible by 4 is not correct

  24. Pedro Wave says:

    @Drazen, based on your formula is possible to obtain this one:
    where FNWD2 is defined as:

    Changing ; separator by , and defining FNWD1 as:
    the new formula is:

    Similar to @Chandoo US Thanksgiving Day simplified:

    Note: FNWD = FirtsNovemberWeekDay

  25. Pedro Wave says:

    @ikkeman, I don't assume leap years.
    Next formula:
    is TRUE when year =
    199u+400*n (u=0..9; n=0..20)
    My formula simplified:

    @Rick and @Elias, thank you very much for your kind comments.

  26. Pedro Wave says:

    @ikkeman, excuse me, change TRUE by FALSE in my last comment.

  27. ikkeman says:

    @ Pedro,
    Mea culpa, I used "<=" rather than ""
    ("less than, equal to" rather than "less than, greater than")

    it works beautifully.

  28. Pedro Wave says:

    @ikkeman, I made a mistake in my explanation.
    I meant that the formula is TRUE for all nineties except when year =
    199u+400*n (u=0..9; n=0..20)
    The pattern key is:
    For nineties as (2090, 2190, 2290, 2490, 2590, 2690, 2890 and so on)'s, u=0..9:
    For other years:
    Add the result to B2+5 and that's it.

  29. ????? says:

    thank you my dear

Leave a Reply