WisFaq!

\require{AMSmath} geprint op zondag 5 mei 2024

Formule in Excel voor het berekenen van de datum van de paaszondag

Is er een enkele Excel-formule om de datum van Paaszondag te berekenen op basis van het jaar? Dus geen algoritme (Gauss e.d.), maar een enkele formule met slechts 1 variabele, namelijk het jaartal.

=DATUM (. x a .. (a-..(5*a )...) iets in die geest

M. den Teuling
1-4-2002

Antwoord

Ja hoor, geen punt:

=ALS(ALS(OF(AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)=57;EN(REST((19*REST(C4;19)+24);30)=28;REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7)=6;REST(C4;19)>10));AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)-7;AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0))>31;DATUM(C4;4;ALS(OF(AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)=57;EN(REST((19*REST(C4;19)+24);30)=28;REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7)=6;REST(C4;19)>10));AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)-7;AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0))-31);DATUM(C4;3;ALS(OF(AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)=57;EN(REST((19*REST(C4;19)+24);30)=28;REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7)=6;REST(C4;19)>10));AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0)-7;AFRONDEN(22+REST((19*REST(C4;19)+24);30)+REST((2*REST(C4;4)+4*REST(C4;7)+6*REST((19*REST(C4;19)+24);30)+REST((4+C4/100-C4/400);7));7);0))))

C4 is dus het veld waar het jaartal staat. Er is echter een klein probleempje... het past er niet in...

Zie ook hier

Zie Excel-blad met één tussenstap [http://www.wisfaq.nl/bestanden/paasdatumberekenen.xls]

WvR
1-4-2002


© 2001-2024 WisFaq
WisFaq - de digitale vraagbaak voor het wiskunde onderwijs - http://www.wisfaq.nl

#2371 - Software - Iets anders