Home » excel » Leap year EOM excel formula

Leap year EOM excel formula

Posted by: admin May 14, 2020 Leave a comment

Questions:

I am trying to extract one year from this date 29/02/2020 and should be getting this 28/02/2019, but I am getting this 31/03/2019. I have the following formula =TEXT(EOMONTH(DATE(YEAR(G1)-1,MONTH(G1),DAY(G1)),0),”DD/MM/YYYY”), can someone tell me what I need to add to this formula so that it takes into account leap years.

How to&Answers:

Would this be okay with you:

=TEXT(EOMONTH(G1,-12),"DD/MM/YYYY")