Get the number of days in a year in Excel

Here is a quick post on how to calculate the number of days in a year given it in a standard date format. i.e. returns 365 except for 366 on leap years.

=IF(OR(MOD(YEAR(A85),400)=0,AND(MOD(YEAR(A85),4)=0,MOD(YEAR(A85),100)<>0)),366, 365)


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *