sreejithbgs
New Member
Hi i want to get the number of days in a year, of a common year as well as a leap year.
I made an equation to get it from a cell with date;
=if(mid(year(04/01/2012)/4,4,3)=0,366,365)
But 'if()' is not taking the result of 'mid()' as '0' when it is a leap year. It is giving '365' always.Please help me.
Thanks
I made an equation to get it from a cell with date;
=if(mid(year(04/01/2012)/4,4,3)=0,366,365)
But 'if()' is not taking the result of 'mid()' as '0' when it is a leap year. It is giving '365' always.Please help me.
Thanks