Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-10-2022, 02:41 PM
Steve Kunkel Steve Kunkel is offline Easter Holiday formulas -- How do they do it!? [low priority post] Windows 10 Easter Holiday formulas -- How do they do it!? [low priority post] Office 2019
Advanced Beginner
Easter Holiday formulas -- How do they do it!? [low priority post]
 
Join Date: May 2019
Location: Seattle area
Posts: 81
Steve Kunkel is on a distinguished road
Default Easter Holiday formulas -- How do they do it!? [low priority post]

Attached is a group of formulas for US holidays that I found on the web a long time ago. (Though I did write the DST ones myself )



I've found 2 different formulas (on the web) that will calculate Easter.

Code:
=DOLLAR(("4/"&theyear)/7+MOD(19*MOD(theyear,19)-7,30)*14%,)*7-6
=ROUND(DATE(theyear,4,MOD(234-11*MOD(theyear,19),30))/7,0)* 7-6
I'm just curious if anyone here created either of these... I'm wondering: What method does a person even use to write one of these?

Something like "the second Sunday of March" can be systematically figured out, since there are only 7 possible permutations of what a "March" month can look like... But Easter is based on the full moon! As I found on the web:

Quote:
The simple standard definition of Easter is that it is the first Sunday after the full Moon that occurs on or after the spring equinox. If the full Moon falls on a Sunday then Easter is the next Sunday.
The only thing I can figure, is that these were somehow "reverse-engineered." I have no idea how that would be done though...

I hand-checked for the next 10 Easters, and both of these formulas appeared to yield correct results...
Attached Files
File Type: xlsx Formulas for Holidays.xlsx (18.4 KB, 12 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easter Holiday formulas -- How do they do it!? [low priority post] Change template priority via VBA heathkat Word VBA 2 05-28-2018 08:15 PM
Easter Holiday formulas -- How do they do it!? [low priority post] Adding national holiday to Master File BarryB Project 3 04-19-2016 07:43 AM
Microsoft Project holiday integration jeccles123 Project 4 03-22-2015 01:42 PM
Easter Holiday formulas -- How do they do it!? [low priority post] MS Project Holiday pmjunkie Project 3 12-14-2011 09:08 AM
Calender month view peeve - display high priority over low priority appts? ghumdinger Outlook 0 07-25-2011 03:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft