Hi! Kindly Provide me formula to check whether 2007,2008,...... are leap year or not
Thanks n reagrds
Hi! Kindly Provide me formula to check whether 2007,2008,...... are leap year or not
Thanks n reagrds
Try this, with your date in A1, put this in B1
=IF(MONTH(DATE(YEAR(A27),2,29))=2,TRUE,FALSE)
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Thanks Buddy,
I know that one but in my problem i have only Year like 2004,2007 so I done that way from myself n it work....
IF(MOD(H21,4)=0,"LeapYear","false")
Last edited by realsaggi; 08-27-2007 at 04:34 AM.
Try this,
![]()
Please Login or Register to view this content.
Be Careful about the year end with 00
There is the forgot 1 rule about leap year.
If the year end with 00 be sure that it's the leap year by divided year with 400 and the remainder is 0!
for more information about the Check Leap year rule please see:
http://www.infoplease.com/spot/leapyear1.html
http://www.infoplease.com/spot/leapyear2.html
so the correct formula is
=IF(MOD(YEAR(CellRef),400)=0,"Leap year",
IF(AND(RIGHT(YEAR(CellRef),2)="00",MOD(YEAR(CellRef),400)<>0),"Not leap year",
IF(MOD(YEAR(CellRef),4)<>0,"Not leap year","Leap Year")))
Last edited by nattasiray; 08-27-2007 at 10:08 AM.
N. Yauvasuta
Power User Excel.
Hi folks,
same question by same author here :
http://www.mrexcel.com/board2/viewtopic.php?t=289703
Last edited by arthurbr; 08-27-2007 at 09:57 AM. Reason: Cross posting
Thanks for the info nattasiray, I was unaware of that one, and also arthurbr for the cross post
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks