+ Reply to Thread
Results 1 to 6 of 6

Leap year indicator

Hybrid View

Guest Leap year indicator 05-19-2006, 12:35 AM
Guest Re: Leap year indicator 05-19-2006, 12:45 AM
Guest Re: Leap year indicator 05-19-2006, 03:00 AM
Guest RE: Leap year indicator 05-19-2006, 12:45 AM
Guest Re: Leap year indicator 05-19-2006, 01:10 AM
Guest Re: Leap year indicator 05-19-2006, 03:50 AM
  1. #1
    Robert
    Guest

    Leap year indicator

    Is there a function to indicate if the YEAR of a given date is a leap year.
    eg. 21 Mar 2004 = 1
    21 Mar 2003 = 0
    Thank you
    --
    Robert

  2. #2
    Peo Sjoblom
    Guest

    Re: Leap year indicator

    One way

    =--(DAY(DATE(YEAR(A1),3,0))=29)

    assuming the date starts in A1 copy down

    --

    Regards,

    Peo Sjoblom

    Excel 95 - Excel 2007
    Northwest Excel Solutions
    www.nwexcelsolutions.com
    "It is a good thing to follow the first law of holes;
    if you are in one stop digging." Lord Healey


    "Robert" <bobbell@discussions.microsoft.com> wrote in message
    news:479A5889-259C-4DC1-AD0A-03F4307C127A@microsoft.com...
    > Is there a function to indicate if the YEAR of a given date is a leap
    > year.
    > eg. 21 Mar 2004 = 1
    > 21 Mar 2003 = 0
    > Thank you
    > --
    > Robert




  3. #3
    Robert
    Guest

    Re: Leap year indicator

    Thanks Peo for pointing the mistake. In view of Article ID21436 in MS Help
    and Support, I shall adopt yours.
    --
    Robert




  4. #4
    Robert
    Guest

    RE: Leap year indicator


    =IF(((YEAR(D2)/4)-(INT(YEAR(D2)/4)))>0,1,0)
    --
    Robert




  5. #5
    Peo Sjoblom
    Guest

    Re: Leap year indicator

    But that's the opposite to what you posted

    21 Mar 2004 = 1
    21 Mar 2003 = 0

    --

    Regards,

    Peo Sjoblom

    Excel 95 - Excel 2007
    Northwest Excel Solutions
    www.nwexcelsolutions.com
    "It is a good thing to follow the first law of holes;
    if you are in one stop digging." Lord Healey


    "Robert" <bobbell@discussions.microsoft.com> wrote in message
    news:D843B48C-A4CB-4E2A-A424-AC6C455A56E4@microsoft.com...
    >
    > =IF(((YEAR(D2)/4)-(INT(YEAR(D2)/4)))>0,1,0)
    > --
    > Robert
    >
    >
    >




  6. #6
    David Biddulph
    Guest

    Re: Leap year indicator

    "Peo Sjoblom" <peo.sjoblom@nw^^excelsolutions.com> wrote in message
    news:uuiFREweGHA.5040@TK2MSFTNGP03.phx.gbl...

    > "Robert" <bobbell@discussions.microsoft.com> wrote in message
    > news:D843B48C-A4CB-4E2A-A424-AC6C455A56E4@microsoft.com...
    >>
    >> =IF(((YEAR(D2)/4)-(INT(YEAR(D2)/4)))>0,1,0)


    > But that's the opposite to what you posted
    >
    > 21 Mar 2004 = 1
    > 21 Mar 2003 = 0


    And even having corrected that, the formula is wrong. 1600 and 2000 were
    leap years, but 1700, 1800, and 1900 weren't and 2100 won't be.
    --
    David Biddulph



+ 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