|
|
\require{AMSmath}
Reageren...
Re: Normale stand
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
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...![](smile.gif) Zie ook hier
Gebruik dit formulier alleen om te reageren op de inhoud van de vraag en/of het
antwoord hierboven. Voor het stellen van nieuwe vragen kan je gebruik maken
van een vraag stellen in het menu aan de linker kant. Alvast bedankt!
|