Forum Discussion
EExmannhotmailcom
May 23, 2020Copper Contributor
Leap Year
Finaly got a working routine in Excel VBA to calculate if current or specific date is in a leap year. Please send me a note and I will publish the VBA code in English. kind regards, Eddy
- May 27, 2020
Just in case, with formula you may check as
=IF(MONTH(DATE(YEAR(A1),2,29))=2,"leap", "not leap") or =IF(DAY(DATE(YEAR(A1),3,0))=29,"leap", "not leap") or likeif the date is in A1.
Riny_van_Eekelen
May 27, 2020Platinum Contributor
EExmannhotmailcom
May 30, 2020Copper Contributor
Riny_van_Eekelen I'm getting an error with this formula: "To Few Arguments entered", checked all brackets, checked all arguments as you gave in your example, but keep getting the error. Thanks for your effort.
Kind Regards, Eddy