The information in this article applies to:
SUMMARYThis article contains information that explains how to determine whether the year in a date used in a Microsoft Excel document is a leap year. MORE INFORMATION
The date system used by Excel is based on the Gregorian calendar,
first established in 1582 by Pope Gregory XIII. This calendar was
designed to correct the errors introduced by the less accurate Julian
calendar.
1700, 1800, 1900, 2100, 2200, 2300, 2500, 2600because they are evenly divisible by 100 but NOT by 400. The following years ARE leap years 1600, 2000, 2400because they are evenly divisible by both 100 and 400. Because earlier versions of Microsoft Excel handle only years from 1900 to 2078, only the year 1900 is subject to the 100/400 exclusion rule of leap years in Microsoft Excel. However, in order to be compatible with other programs, Microsoft Excel treats the year 1900 as a leap year. For additional information, please see the following article in the Microsoft Knowledge Base: Q214058 XL2000: Days of the Week Before March 1, 1900 Are Incorrect To Determine If a Year Is a Leap YearTo determine if a year is a leap year, follow these steps:
Formula to Determine If a Year Is a Leap YearThe following formula will determine whether the year number entered into a cell (in this example, cell A1) is a leap year:=IF(OR(MOD(A1,400)=0,AND(MOD(A1,4)=0,MOD(A1,100)<>0)),"Leap Year", "NOT a Leap Year")
REFERENCESFor more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site: http://www.microsoft.com/y2k/ Additional query words: XL2000 y2k years leapyear 365 366
Keywords : kb2000 xlformula |
Last Reviewed: June 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |