+ Reply to Thread
Results 1 to 7 of 7

Leap Year

  1. #1
    Registered User
    Join Date
    08-21-2007
    Location
    India
    Posts
    7

    Smile Leap Year

    Hi! Kindly Provide me formula to check whether 2007,2008,...... are leap year or not

    Thanks n reagrds

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    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

  3. #3
    Registered User
    Join Date
    08-21-2007
    Location
    India
    Posts
    7
    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.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Try this,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-11-2007
    Location
    Nonthaburee Province, Thailand
    MS-Off Ver
    MS Office 2003 to MS Office 2010
    Posts
    82

    Is 1700, 1800, 1900, 2100 the leap year ?

    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.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Thumbs down Cross posting

    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

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Thanks for the info nattasiray, I was unaware of that one, and also arthurbr for the cross post

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1